MCPcopy Create free account
hub / github.com/FastLED/FastLED / show

Method show

src/cpixel_ledcontroller.h:46–54  ·  view source on GitHub ↗

Write the passed in RGB data out to the LEDs managed by this controller @param data the RGB data to write out to the strip @param nLeds the number of LEDs being written out @param scale_pre_mixed the RGB scaling of color adjustment + global brightness to apply to each LED (in RGB8 mode).

Source from the content-addressed store, hash-verified

44 /// @param nLeds the number of LEDs being written out
45 /// @param scale_pre_mixed the RGB scaling of color adjustment + global brightness to apply to each LED (in RGB8 mode).
46 virtual void show(const CRGB *data, int nLeds, fl::u8 brightness) override {
47 ColorAdjustment color_adjustment = getAdjustmentData(brightness);
48 PixelController<RGB_ORDER, LANES, MASK> pixels(data, nLeds < 0 ? -nLeds : nLeds, color_adjustment, getDither());
49 if(nLeds < 0) {
50 // nLeds < 0 implies that we want to show them in reverse
51 pixels.mAdvance = -pixels.mAdvance;
52 }
53 showPixels(pixels);
54 }
55
56public:
57 static const EOrder RGB_ORDER_VALUE = RGB_ORDER; ///< The RGB ordering for this controller

Callers

nothing calls this directly

Calls 1

showPixelsFunction · 0.70

Tested by

no test coverage detected