FastLED 3.9.15
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 = 0xFF000000>
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 154 of file apa102.h.

154 {
155 mSPI.select();
159 while (pixels.has(1)) {
160 fl::u8 c0, c1, c2;
161 pixels.loadAndScaleRGB(&c0, &c1, &c2);
163 pixels.stepDithering();
164 pixels.advanceData();
165 }
167
168 mSPI.endTransaction();
169
170 // Finalize transmission (no-op on non-ESP32, flushes Quad-SPI on ESP32)
171 mSPI.finalizeTransmission();
172 }
FASTLED_FORCE_INLINE void writeLed(fl::u8 brightness, fl::u8 b0, fl::u8 b1, fl::u8 b2)
Definition apa102.h:60
static void getGlobalBrightnessAndScalingFactors(PixelController< RGB_ORDER > &pixels, fl::u8 *out_s0, fl::u8 *out_s1, fl::u8 *out_s2, fl::u8 *out_brightness)
Definition apa102.h:108
void startBoundary()
Definition apa102.h:42
void endBoundary(int nLeds)
Definition apa102.h:46
APA102 controller class.
Definition apa102.h:38
virtual int size() const FL_NOEXCEPT
How many LEDs does this controller manage?

References PixelController< RGB_ORDER, LANES, MASK >::advanceData(), endBoundary(), getGlobalBrightnessAndScalingFactors(), PixelController< RGB_ORDER, LANES, MASK >::has(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScaleRGB(), mSPI, PixelController< RGB_ORDER, LANES, MASK >::size(), startBoundary(), PixelController< RGB_ORDER, LANES, MASK >::stepDithering(), and writeLed().

Referenced by showPixels().

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