![]() |
Open Lighting Architecture
Latest Git
|
Uses data in a DMXBuffer to drive GPIO pins.
Classes | |
struct | Options |
The Options. More... | |
Public Member Functions | |
GPIODriver (const Options &options) | |
Create a new GPIODriver. More... | |
~GPIODriver () | |
Destructor. | |
bool | Init () |
Initialize the GPIODriver. More... | |
std::vector< uint16_t > | PinList () const |
Get a list of the GPIO pins controlled by this driver. More... | |
bool | SendDmx (const DmxBuffer &dmx) |
Set the values of the GPIO pins from the data in the DMXBuffer. More... | |
void * | Run () |
The entry point for the new thread. More... | |
|
explicit |
Create a new GPIODriver.
options | the Options struct. |
bool ola::plugin::gpio::GPIODriver::Init | ( | ) |
Initialize the GPIODriver.
|
inline |
Get a list of the GPIO pins controlled by this driver.
|
virtual |
The entry point for the new thread.
Sub classes must implement this.
Implements ola::thread::Thread.
bool ola::plugin::gpio::GPIODriver::SendDmx | ( | const DmxBuffer & | dmx | ) |
Set the values of the GPIO pins from the data in the DMXBuffer.
dmx | the DmxBuffer with the values to use. |