Open Lighting Architecture  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::plugin::karate::KarateLight Class Reference

Public Member Functions

 KarateLight (const std::string &dev)
 Default constructor.
 ~KarateLight ()
 Default destructor.
bool Init ()
 Initialize the device.
void Close ()
bool Blank ()
 Sets all Channels to black and sends data to the device.
bool SetColors (const DmxBuffer &da)
 Copy contents of the DmxBuffer into my local scope.
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 std::string &  dev)
explicit

Default constructor.

Parameters
devthe 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.

  1. Open the device file and get a file lock
  2. Read defaults (firmware, hardware, channels count)
  3. 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: