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

◆ showPixels()

template<uint8_t DATA_PIN, uint8_t 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 326 of file chipsets.h.

326 {
327 mSPI.select();
328
330 while(pixels.has(1)) {
332 command = 0x8000;
333 command |= (pixels.loadAndScale0() & 0xF8) << 7; // red is the high 5 bits
334 command |= (pixels.loadAndScale1() & 0xF8) << 2; // green is the middle 5 bits
335 mSPI.writeByte((command >> 8) & 0xFF);
336 command |= pixels.loadAndScale2() >> 3 ; // blue is the low 5 bits
337 mSPI.writeByte(command & 0xFF);
338
339 pixels.stepDithering();
340 pixels.advanceData();
341 }
343 mSPI.waitFully();
344 mSPI.release();
345 }
virtual int size()
How many LEDs does this controller manage?
void startBoundary()
Definition chipsets.h:314
void endBoundary(int nLeds)
Definition chipsets.h:315
LPD6803 controller class (LPD1101).
Definition chipsets.h:310

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: