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

◆ showPixels()

template<fl::u8 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 36 of file dmx.h.

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

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: