hyperion.ng/libsrc/leddevice/LedDeviceSedu.h

33 lines
716 B
C
Raw Normal View History

#pragma once
// hyperion incluse
#include "ProviderRs232.h"
2013-09-09 04:54:13 +02:00
///
/// Implementation of the LedDevice interface for writing to SEDU led device.
2013-09-09 04:54:13 +02:00
///
class LedDeviceSedu : public ProviderRs232
{
public:
2013-09-09 04:54:13 +02:00
///
/// Constructs specific LedDevice
2013-09-09 04:54:13 +02:00
///
/// @param deviceConfig json device config
2013-09-09 04:54:13 +02:00
///
LedDeviceSedu(const Json::Value &deviceConfig);
/// constructs leddevice
static LedDevice* construct(const Json::Value &deviceConfig);
virtual bool init(const Json::Value &deviceConfig);
private:
2013-09-09 04:54:13 +02:00
///
/// Writes the led color values to the led-device
///
/// @param ledValues The color-value per led
/// @return Zero on succes else negative
///
virtual int write(const std::vector<ColorRgb> &ledValues);
};