|
| KarateLight (const std::string &dev) |
| Default constructor. More...
|
|
| ~KarateLight () |
| Default destructor. More...
|
|
bool | Init () |
| Initialize the device. More...
|
|
void | Close () |
|
bool | Blank () |
| Sets all Channels to black and sends data to the device. More...
|
|
bool | SetColors (const DmxBuffer &da) |
| Copy contents of the DmxBuffer into my local scope. More...
|
|
uint16_t | GetnChannels () const |
|
uint8_t | GetFWVersion () const |
|
uint8_t | GetHWVersion () const |
|
uint16_t | GetDMXOffset () const |
|
bool | IsActive () const |
|
◆ KarateLight()
ola::plugin::karate::KarateLight::KarateLight |
( |
const std::string & |
dev | ) |
|
|
explicit |
Default constructor.
- Parameters
-
dev | the filename of the device to use |
◆ ~KarateLight()
ola::plugin::karate::KarateLight::~KarateLight |
( |
| ) |
|
Default destructor.
Closes the device and does release the file-lock
◆ Blank()
bool ola::plugin::karate::KarateLight::Blank |
( |
| ) |
|
Sets all Channels to black and sends data to the device.
- Returns
- true on success
◆ Init()
bool ola::plugin::karate::KarateLight::Init |
( |
| ) |
|
Initialize the device.
- Open the device file and get a file lock
- Read defaults (firmware, hardware, channels count)
- Set all channels to black
◆ SetColors()
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: