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

◆ show()

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

Write the passed in RGB data out to the LEDs managed by this controller.

Parameters
datathe RGB data to write out to the strip
nLedsthe number of LEDs being written out
scale_pre_mixedthe RGB scaling of color adjustment + global brightness to apply to each LED (in RGB8 mode).

Implements CLEDController.

Definition at line 47 of file cpixel_ledcontroller.h.

47 {
50 if(nLeds < 0) {
51 // nLeds < 0 implies that we want to show them in reverse
52 pixels.mAdvance = -pixels.mAdvance;
53 }
55 }
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(), PixelController< RGB_ORDER, LANES, MASK >::mAdvance, and showPixels().

+ Here is the call graph for this function: