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).
| 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 | |
| 56 | public: |
| 57 | static const EOrder RGB_ORDER_VALUE = RGB_ORDER; ///< The RGB ordering for this controller |
nothing calls this directly
no test coverage detected