FastLED 3.10.8
Loading...
Searching...
No Matches

◆ showPixelsDefault()

template<fl::u8 DATA_PIN, fl::u8 CLOCK_PIN, EOrder RGB_ORDER = RGB, fl::u32 SPI_SPEED = DATA_RATE_MHZ(6), fl::FiveBitGammaCorrectionMode GAMMA_CORRECTION_MODE = fl::FiveBitGammaCorrectionMode::kFiveBitGammaCorrectionMode_Null, fl::u32 START_FRAME = 0x00000000, fl::u32 END_FRAME = 0xFFFFFFFF>
void APA102Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED, GAMMA_CORRECTION_MODE, START_FRAME, END_FRAME >::showPixelsDefault ( PixelController< RGB_ORDER > & pixels)
inlineprivate

Definition at line 164 of file apa102.h.

164 {
165 mSPI.select();
169 while (pixels.has(1)) {
170 fl::u8 c0, c1, c2;
171 pixels.loadAndScaleRGB(&c0, &c1, &c2);
173 pixels.stepDithering();
174 pixels.advanceData();
175 }
177
178 mSPI.endTransaction();
179
180 // Finalize transmission (no-op on non-ESP32, flushes Quad-SPI on ESP32)
181 mSPI.finalizeTransmission();
182 }
void endBoundary(int nLeds) FL_NO_EXCEPT
Definition apa102.h:50
static void getGlobalBrightnessAndScalingFactors(PixelController< RGB_ORDER > &pixels, fl::u8 *out_s0, fl::u8 *out_s1, fl::u8 *out_s2, fl::u8 *out_brightness) FL_NO_EXCEPT
Definition apa102.h:118
FASTLED_FORCE_INLINE void writeLed(fl::u8 brightness, fl::u8 b0, fl::u8 b1, fl::u8 b2) FL_NO_EXCEPT
Definition apa102.h:64
void startBoundary() FL_NO_EXCEPT
Definition apa102.h:46
APA102 controller class.
Definition apa102.h:42
VIRTUAL_IF_NOT_AVR int size() const FL_NO_EXCEPT
How many LEDs does this controller manage?

References endBoundary(), FL_NO_EXCEPT, getGlobalBrightnessAndScalingFactors(), mSPI, startBoundary(), and writeLed().

Referenced by showPixels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: