Legacy showPixels implementation.
| 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; |
nothing calls this directly
no test coverage detected