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

◆ showPixels()

template<EOrder RGB_ORDER = RGB>
virtual void DMXSerialController< RGB_ORDER >::showPixels ( PixelController< RGB_ORDER > & pixels)
inlinevirtual

Send the LED data to the strip.

Parameters
pixelsthe PixelController object for the LED data

Definition at line 70 of file dmx.h.

70 {
71 int iChannel = 1;
72 while(pixels.has(1)) {
73 DMXSerial.write(iChannel++, pixels.loadAndScale0());
74 DMXSerial.write(iChannel++, pixels.loadAndScale1());
75 DMXSerial.write(iChannel++, pixels.loadAndScale2());
76 pixels.advanceData();
77 pixels.stepDithering();
78 }
79 }
DMX512 based LED controller class, using the DMXSerial library.
Definition dmx.h:64

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: