2013-12-10 20:28:27 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Hyperion includes
|
2016-08-28 07:12:48 +02:00
|
|
|
#include "ProviderHID.h"
|
2013-12-10 20:28:27 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
/// LedDevice implementation for a paintpack device ()
|
|
|
|
///
|
2016-08-28 07:12:48 +02:00
|
|
|
class LedDevicePaintpack : public ProviderHID
|
2013-12-10 20:28:27 +01:00
|
|
|
{
|
|
|
|
public:
|
2016-08-23 20:07:12 +02:00
|
|
|
///
|
|
|
|
/// Constructs specific LedDevice
|
|
|
|
///
|
|
|
|
/// @param deviceConfig json device config
|
|
|
|
///
|
|
|
|
LedDevicePaintpack(const Json::Value &deviceConfig);
|
|
|
|
|
|
|
|
/// constructs leddevice
|
|
|
|
static LedDevice* construct(const Json::Value &deviceConfig);
|
2013-12-10 20:28:27 +01:00
|
|
|
|
2016-09-23 08:49:22 +02:00
|
|
|
private:
|
2013-12-10 20:28:27 +01:00
|
|
|
///
|
|
|
|
/// Writes the RGB-Color values to the leds.
|
|
|
|
///
|
|
|
|
/// @param[in] ledValues The RGB-color per led
|
|
|
|
///
|
|
|
|
/// @return Zero on success else negative
|
|
|
|
///
|
|
|
|
virtual int write(const std::vector<ColorRgb>& ledValues);
|
|
|
|
};
|