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

Method showPixelsDefault

src/fl/chipsets/apa102.h:154–172  ·  view source on GitHub ↗

Legacy showPixels implementation.

Source from the content-addressed store, hash-verified

152
153 // Legacy showPixels implementation.
154 inline void showPixelsDefault(PixelController<RGB_ORDER> & pixels) {
155 mSPI.select();
156 fl::u8 s0, s1, s2, global_brightness;
157 getGlobalBrightnessAndScalingFactors(pixels, &s0, &s1, &s2, &global_brightness);
158 startBoundary();
159 while (pixels.has(1)) {
160 fl::u8 c0, c1, c2;
161 pixels.loadAndScaleRGB(&c0, &c1, &c2);
162 writeLed(global_brightness, c0, c1, c2);
163 pixels.stepDithering();
164 pixels.advanceData();
165 }
166 endBoundary(pixels.size());
167
168 mSPI.endTransaction();
169
170 // Finalize transmission (no-op on non-ESP32, flushes Quad-SPI on ESP32)
171 mSPI.finalizeTransmission();
172 }
173
174 inline void showPixelsGammaBitShift(PixelController<RGB_ORDER> & pixels) {
175 static constexpr fl::u16 kBatchSize = 8;

Callers

nothing calls this directly

Calls 9

writeLedFunction · 0.85
selectMethod · 0.45
hasMethod · 0.45
loadAndScaleRGBMethod · 0.45
stepDitheringMethod · 0.45
advanceDataMethod · 0.45
sizeMethod · 0.45
endTransactionMethod · 0.45
finalizeTransmissionMethod · 0.45

Tested by

no test coverage detected