FastLED 3.9.15
Loading...
Searching...
No Matches

◆ showPixels()

template<fl::u8 DATA_PIN, fl::u8 CLOCK_PIN, EOrder RGB_ORDER = RGB, uint32_t SPI_SPEED = DATA_RATE_MHZ(12)>
virtual void LPD6803Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED >::showPixels ( PixelController< RGB_ORDER > & pixels)
inlineprotectedvirtual

Send the LED data to the strip.

Parameters
pixelsthe PixelController object for the LED data

Definition at line 352 of file chipsets.h.

352 {
353 mSPI.select();
354
356 while(pixels.has(1)) {
358 command = 0x8000;
359 command |= (pixels.loadAndScale0() & 0xF8) << 7; // red is the high 5 bits
360 command |= (pixels.loadAndScale1() & 0xF8) << 2; // green is the middle 5 bits
361 mSPI.writeByte((command >> 8) & 0xFF);
362 command |= pixels.loadAndScale2() >> 3 ; // blue is the low 5 bits
363 mSPI.writeByte(command & 0xFF);
364
365 pixels.stepDithering();
366 pixels.advanceData();
367 }
369 mSPI.waitFully();
370 mSPI.release();
371 }
virtual int size()
How many LEDs does this controller manage?
void startBoundary()
Definition chipsets.h:340
void endBoundary(int nLeds)
Definition chipsets.h:341
LPD6803 controller class (LPD1101).
Definition chipsets.h:336

References PixelController< RGB_ORDER, LANES, MASK >::advanceData(), endBoundary(), FASTLED_REGISTER, PixelController< RGB_ORDER, LANES, MASK >::has(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScale0(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScale1(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScale2(), mSPI, PixelController< RGB_ORDER, LANES, MASK >::size(), startBoundary(), and PixelController< RGB_ORDER, LANES, MASK >::stepDithering().

+ Here is the call graph for this function: