Public Member Functions |
| KarateLight (const string &dev) |
| ~KarateLight () |
bool | Init () |
void | Close () |
bool | Blank () |
bool | SetColors (const DmxBuffer &da) |
uint16_t | GetnChannels () const |
uint8_t | GetFWVersion () const |
uint8_t | GetHWVersion () const |
uint16_t | GetDMXOffset () const |
bool | IsActive () const |
Constructor & Destructor Documentation
ola::plugin::karate::KarateLight::KarateLight |
( |
const string & |
dev | ) |
|
|
explicit |
Default constructor
- Parameters
-
dev | the filename of the device to use |
ola::plugin::karate::KarateLight::~KarateLight |
( |
| ) |
|
Default destructor closes the device and does release the file-lock
Member Function Documentation
bool ola::plugin::karate::KarateLight::Blank |
( |
| ) |
|
Sets all Channels to black and sends data to the device
- Returns
- true on success
bool ola::plugin::karate::KarateLight::Init |
( |
| ) |
|
Initialize the device
- open the devicefile and get a file lock
- read defaults (firmware, hardware, channels count)
- set all channels to black
bool ola::plugin::karate::KarateLight::SetColors |
( |
const DmxBuffer & |
da | ) |
|
copy contents of the DmxBuffer into my local scope
- Returns
- true on success
The documentation for this class was generated from the following files: