FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ 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 328 of file chipsets.h.

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

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: