![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Manages HUB75 LED matrices and secondary LED displays or strips. More...
#include <HUB75ControllerSplit.h>
Public Member Functions | |
HUB75ControllerSplit (CameraManager *cameras, uint8_t maxBrightness, uint8_t maxAccentBrightness) | |
Constructs a HUB75ControllerSplit with specified parameters. | |
void | Initialize () override |
Initializes the HUB75ControllerSplit and sets up the displays. | |
void | Display () override |
Updates and displays the content on the main and secondary displays. | |
void | SetBrightness (uint8_t maxBrightness) |
Sets the maximum brightness of the main HUB75 LED matrix. | |
void | SetAccentBrightness (uint8_t maxAccentBrightness) |
Sets the maximum brightness of the secondary LED strip or display. | |
![]() | |
uint8_t | GetBrightness () |
Retrieves the current brightness level. | |
uint8_t | GetAccentBrightness () |
Retrieves the current accent brightness level. | |
Additional Inherited Members | |
![]() | |
Controller (CameraManager *cameras, uint8_t maxBrightness, uint8_t maxAccentBrightness) | |
Constructs a Controller with specified parameters. | |
void | UpdateBrightness () |
Updates the brightness based on internal logic. | |
![]() | |
CameraManager * | cameras |
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. | |
Manages HUB75 LED matrices and secondary LED displays or strips.
The HUB75ControllerSplit class extends the Controller base class to provide specific functionality for initializing, controlling, and displaying content on HUB75 LED matrices and managing secondary accent displays or LED strips.
Definition at line 29 of file HUB75ControllerSplit.h.
HUB75ControllerSplit | ( | CameraManager * | cameras, |
uint8_t | maxBrightness, | ||
uint8_t | maxAccentBrightness | ||
) |
Constructs a HUB75ControllerSplit with specified parameters.
cameras | Pointer to the CameraManager for managing camera data. |
maxBrightness | Maximum brightness for the main HUB75 LED matrix. |
maxAccentBrightness | Maximum brightness for the secondary LED strip or display. |
Definition at line 10 of file HUB75ControllerSplit.cpp.
|
overridevirtual |
Updates and displays the content on the main and secondary displays.
Implements Controller.
Definition at line 25 of file HUB75ControllerSplit.cpp.
References Controller::accentBrightness, RGBColor::B, Controller::brightness, Controller::cameras, RGBColor::G, CameraManager::GetCameras(), IPixelGroup::GetColor(), CameraBase::GetPixelGroup(), kApaMatrixWidth, RGBColor::R, and Controller::UpdateBrightness().
|
overridevirtual |
Initializes the HUB75ControllerSplit and sets up the displays.
Implements Controller.
Definition at line 12 of file HUB75ControllerSplit.cpp.
Sets the maximum brightness of the secondary LED strip or display.
maxAccentBrightness | The maximum brightness value (0-255). |
Implements Controller.
Definition at line 66 of file HUB75ControllerSplit.cpp.
References Controller::accentBrightness, Controller::isOn, and Controller::maxAccentBrightness.
Sets the maximum brightness of the main HUB75 LED matrix.
maxBrightness | The maximum brightness value (0-255). |
Implements Controller.
Definition at line 58 of file HUB75ControllerSplit.cpp.
References Controller::brightness, Controller::isOn, and Controller::maxBrightness.