pixled-lib  1.0
Public Member Functions | List of all members
pixled::Output Class Referenceabstract

#include <output.h>

Public Member Functions

virtual void write (const color &color, std::size_t i)=0
 

Detailed Description

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.

Member Function Documentation

◆ write()

virtual void pixled::Output::write ( const color color,
std::size_t  i 
)
pure virtual

Writes the color to the led at index i in the led strip.

Parameters
colorled color
iled index

The documentation for this class was generated from the following file: