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

◆ showPixels()

template<uint8_t DATA_PIN, EOrder RGB_ORDER = RGB>
virtual void DMXSimpleController< DATA_PIN, RGB_ORDER >::showPixels ( PixelController< RGB_ORDER > & pixels)
inlineprotectedvirtual

Send the LED data to the strip.

Parameters
pixelsthe PixelController object for the LED data

Definition at line 35 of file dmx.h.

35 {
36 int iChannel = 1;
37 while(pixels.has(1)) {
38 DmxSimple.write(iChannel++, pixels.loadAndScale0());
39 DmxSimple.write(iChannel++, pixels.loadAndScale1());
40 DmxSimple.write(iChannel++, pixels.loadAndScale2());
41 pixels.advanceData();
42 pixels.stepDithering();
43 }
44 }
DMX512 based LED controller class, using the DmxSimple library.
Definition dmx.h:28

References PixelController< RGB_ORDER, LANES, MASK >::advanceData(), PixelController< RGB_ORDER, LANES, MASK >::has(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScale0(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScale1(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScale2(), and PixelController< RGB_ORDER, LANES, MASK >::stepDithering().

+ Here is the call graph for this function: