pixled-lib
1.0
|
#include <output.h>
Public Member Functions | |
virtual void | write (const color &color, std::size_t i)=0 |
Generic Output interface.
The purpose of the output is to write each color to each led of a led strip.
Implementations are completely free about how to handle the write operation: the output might be a gif, a generic buffer, a direct output to a real led strip on embedded systems, a bridge to a third party led driver library...
The write() method is automatically called by the Runtime, according to the current mapping and animation.
|
pure virtual |
Writes the color
to the led at index i
in the led strip.
color | led color |
i | led index |