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

Method showPixels

tests/fl/chipsets/ucs7604.cpp:154–162  ·  view source on GitHub ↗

Made public for testing with UCS7604Controller which uses composition

Source from the content-addressed store, hash-verified

152
153 // Made public for testing with UCS7604Controller which uses composition
154 virtual void showPixels(PixelController<RGB_ORDER>& pixels) override {
155 // Capture raw RGB bytes without any RGBW processing
156 // UCS7604Controller already handles RGBW conversion internally
157 capturedBytes.clear();
158 PixelController<RGB> pixels_rgb = pixels;
159 pixels_rgb.disableColorAdjustment();
160 auto iterator = pixels_rgb.as_iterator(RgbwInvalid());
161 iterator.writeWS2812(&capturedBytes);
162 }
163};
164
165/// Test wrapper that exposes protected showPixels method and provides access to captured bytes

Callers 3

testUCS7604ControllerFunction · 0.45
FL_TEST_FILEFunction · 0.45
captureBytesFunction · 0.45

Calls 4

RgbwInvalidClass · 0.85
writeWS2812Method · 0.80
clearMethod · 0.45

Tested by

no test coverage detected