19 int offset, inverseOffset;
21 for (
int i = 0; i < 571; i++){
26 for (
int i = 0; i < 571; i++) {
29 inverseOffset = 570 - offset;
32 leds.setPixel(i + 346 * 0, camRghtRearPixels->
GetColor(inverseOffset)->
R, camRghtRearPixels->
GetColor(inverseOffset)->
G, camRghtRearPixels->
GetColor(inverseOffset)->
B);
36 leds.setPixel(i + 346 * 4, camRghtFrntPixels->
GetColor(inverseOffset)->
R, camRghtFrntPixels->
GetColor(inverseOffset)->
G, camRghtFrntPixels->
GetColor(inverseOffset)->
B);
41 inverseOffset = 570 - offset;
44 leds.setPixel(i + 346 * 2 - 346, camRghtRearPixels->
GetColor(inverseOffset)->
R, camRghtRearPixels->
GetColor(inverseOffset)->
G, camRghtRearPixels->
GetColor(inverseOffset)->
B);
48 leds.setPixel(i + 346 * 6 - 346, camRghtFrntPixels->
GetColor(inverseOffset)->
R, camRghtFrntPixels->
GetColor(inverseOffset)->
G, camRghtFrntPixels->
GetColor(inverseOffset)->
B);
57 leds.setPixel(346 * strip + led, rgb.
R, rgb.
G, rgb.
B);
OctoWS2811 leds(ledsPerStrip, displayMemory, drawingMemory, config)
int drawingMemory[346 *6]
DMAMEM int dmaDisplayMemory[346 *6]
Declares the WS35BetaController class for managing WS2812-based displays on the Beta Protogen head.
virtual IPixelGroup * GetPixelGroup()=0
Retrieves the associated pixel group.
Manages multiple CameraBase objects.
CameraBase ** GetCameras()
Retrieves the array of CameraBase objects.
Base class for managing brightness and display operations of lighting controllers.
uint8_t maxAccentBrightness
Maximum allowed accent brightness level.
uint8_t accentBrightness
Current accent brightness level.
uint8_t brightness
Current brightness level.
uint8_t maxBrightness
Maximum allowed brightness level.
CameraManager * cameras
Pointer to the CameraManager for managing camera data.
void UpdateBrightness()
Updates the brightness based on internal logic.
bool isOn
Indicates if the controller is active.
Interface for managing and interacting with a collection of pixels.
virtual RGBColor * GetColor(uint16_t count)=0
Retrieves the color of a specific pixel.
Represents an RGB color and provides methods for manipulation.
RGBColor Scale(const uint8_t &maxBrightness)
Scales the brightness of the color to a maximum value.
uint8_t B
Blue component of the color (0-255).
uint8_t G
Green component of the color (0-255).
uint8_t R
Red component of the color (0-255).
void Initialize() override
Initializes the WS35BetaController and sets up the displays.
OctoWS2811 leds
Instance of OctoWS2811 for controlling the LEDs.
void SetPixels(uint8_t strip, uint16_t led, RGBColor rgb)
Sets the color of a specific LED on a specific strip.
void Display() override
Updates and displays the content on the WS2812 displays.
WS35BetaController(CameraManager *cameras, uint8_t maxBrightness)
Constructs a WS35BetaController with specified parameters.
void SetAccentBrightness(uint8_t maxAccentBrightness) override
Sets the maximum accent brightness (not used for this controller).
void SetBrightness(uint8_t maxBrightness) override
Sets the maximum brightness for the displays.