FastLED 3.9.15
Loading...
Searching...
No Matches

◆ showColor()

template<EOrder RGB_ORDER, int LANES = 1, uint32_t MASK = 0xFFFFFFFF>
virtual void CPixelLEDController< RGB_ORDER, LANES, MASK >::showColor ( const CRGB & data,
int nLeds,
uint8_t brightness )
inlineoverrideprotectedvirtual

Set all the LEDs on the controller to a given color.

Parameters
datathe CRGB color to set the LEDs to
nLedsthe number of LEDs to set to this color
scale_pre_mixedthe RGB scaling of color adjustment + global brightness to apply to each LED (in RGB8 mode).

Implements CLEDController.

Definition at line 34 of file cpixel_ledcontroller.h.

34 {
35 // CRGB premixed, color_correction;
36 // getAdjustmentData(brightness, &premixed, &color_correction);
37 // ColorAdjustment color_adjustment = {premixed, color_correction, brightness};
41 }
uint8_t getDither()
Get the dithering option currently set for this controller.
ColorAdjustment getAdjustmentData(uint8_t brightness)
virtual void showPixels(PixelController< RGB_ORDER, LANES, MASK > &pixels)=0
Send the LED data to the strip.
Template extension of the CLEDController class.

References brightness, CLEDController::getAdjustmentData(), CLEDController::getDither(), and showPixels().

+ Here is the call graph for this function: