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

◆ showColor()

template<EOrder RGB_ORDER, int LANES = 1, fl::u32 MASK = 0xFFFFFFFF>
virtual void CPixelLEDController< RGB_ORDER, LANES, MASK >::showColor ( const CRGB & data,
int nLeds,
fl::u8 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 33 of file cpixel_ledcontroller.h.

33 {
34 // CRGB premixed, color_correction;
35 // getAdjustmentData(brightness, &premixed, &color_correction);
36 // ColorAdjustment color_adjustment = {premixed, color_correction, brightness};
40 }
fl::u8 getDither()
Get the dithering option currently set for this controller.
ColorAdjustment getAdjustmentData(fl::u8 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: