ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
HUB75Controller Class Reference

Manages HUB75 LED matrices with camera integration. More...

#include <HUB75Controller.h>

Inheritance diagram for HUB75Controller:
Collaboration diagram for HUB75Controller:

Public Member Functions

 HUB75Controller (CameraManager *cameras, uint8_t maxBrightness, uint8_t maxAccentBrightness)
 Constructs a HUB75Controller with specified parameters.
 
void Initialize () override
 Initializes the HUB75Controller and sets up the LED matrix.
 
void Display () override
 Updates and displays the content on the LED matrix.
 
void SetBrightness (uint8_t maxBrightness) override
 Sets the maximum brightness of the LED matrix.
 
void SetAccentBrightness (uint8_t maxAccentBrightness) override
 Sets the maximum accent brightness of the secondary display.
 
- Public Member Functions inherited from Controller
uint8_t GetBrightness ()
 Retrieves the current brightness level.
 
uint8_t GetAccentBrightness ()
 Retrieves the current accent brightness level.
 

Additional Inherited Members

- Protected Member Functions inherited from Controller
 Controller (CameraManager *cameras, uint8_t maxBrightness, uint8_t maxAccentBrightness)
 Constructs a Controller with specified parameters.
 
void UpdateBrightness ()
 Updates the brightness based on internal logic.
 
- Protected Attributes inherited from Controller
CameraManagercameras
 Pointer to the CameraManager for managing camera data.
 
uint8_t brightness
 Current brightness level.
 
uint8_t accentBrightness
 Current accent brightness level.
 
uint8_t maxBrightness
 Maximum allowed brightness level.
 
uint8_t maxAccentBrightness
 Maximum allowed accent brightness level.
 
bool isOn = false
 Indicates if the controller is active.
 
bool startTime = false
 Indicates if the start time has been recorded.
 

Detailed Description

Manages HUB75 LED matrices with camera integration.

The HUB75Controller class extends the Controller base class to provide specific functionality for initializing, controlling, and displaying content on HUB75 LED matrices.

Definition at line 27 of file HUB75Controller.h.

Constructor & Destructor Documentation

◆ HUB75Controller()

HUB75Controller ( CameraManager cameras,
uint8_t  maxBrightness,
uint8_t  maxAccentBrightness 
)

Constructs a HUB75Controller with specified parameters.

Parameters
camerasPointer to the CameraManager for managing camera data.
maxBrightnessMaximum brightness for the LED matrix.
maxAccentBrightnessMaximum brightness for accent lighting.

Definition at line 10 of file HUB75Controller.cpp.

Member Function Documentation

◆ Display()

◆ Initialize()

void Initialize ( )
overridevirtual

Initializes the HUB75Controller and sets up the LED matrix.

Implements Controller.

Definition at line 12 of file HUB75Controller.cpp.

Referenced by Boot::Initialize(), SpyroAnimation::Initialize(), and VerifyEngine::Initialize().

◆ SetAccentBrightness()

void SetAccentBrightness ( uint8_t  maxAccentBrightness)
overridevirtual

Sets the maximum accent brightness of the secondary display.

Parameters
maxAccentBrightnessThe maximum accent brightness value (0-255).

Implements Controller.

Definition at line 68 of file HUB75Controller.cpp.

References Controller::accentBrightness, Controller::isOn, and Controller::maxAccentBrightness.

Referenced by ArrowAnimation::Update(), DrGonzoProject::Update(), DrGonzoTest::Update(), SageAnimation::Update(), SplatAnimation::Update(), UnicornZhenjaAnimation::Update(), and ProtogenHUB75Project::Update().

◆ SetBrightness()

void SetBrightness ( uint8_t  maxBrightness)
overridevirtual

Sets the maximum brightness of the LED matrix.

Parameters
maxBrightnessThe maximum brightness value (0-255).

Implements Controller.

Definition at line 60 of file HUB75Controller.cpp.

References Controller::brightness, Controller::isOn, and Controller::maxBrightness.

Referenced by ArrowAnimation::Update(), DrGonzoProject::Update(), DrGonzoTest::Update(), SageAnimation::Update(), SplatAnimation::Update(), UnicornZhenjaAnimation::Update(), and ProtogenHUB75Project::Update().


The documentation for this class was generated from the following files: