Initial commit including a linear color smoother

Former-commit-id: ffc00087996324f989e56dc5c95ab734c7c86dfa
This commit is contained in:
johan
2013-10-27 18:04:37 +01:00
parent 73243eb593
commit 0b08341ef1
11 changed files with 216 additions and 8 deletions

View File

@@ -135,10 +135,11 @@ public:
///
const InputInfo& getPriorityInfo(const int priority) const;
static LedDevice * constructDevice(const Json::Value & deviceConfig);
static LedDevice * createDevice(const Json::Value & deviceConfig);
static LedString createLedString(const Json::Value & ledsConfig);
static HsvTransform * createHsvTransform(const Json::Value & hsvConfig);
static ColorTransform * createColorTransform(const Json::Value & colorConfig);
static LedDevice * createColorSmoothing(const Json::Value & smoothingConfig, LedDevice * ledDevice);
private slots:
///
@@ -175,7 +176,7 @@ private:
bool _haveBgrOutput;
/// The actual LedDevice
LedDevice* _device;
LedDevice * _device;
/// The timer for handling priority channel timeouts
QTimer _timer;

View File

@@ -29,4 +29,7 @@ public:
/// @return Zero on success else negative
///
virtual int write(const std::vector<RgbColor>& ledValues) = 0;
/// Switch the leds off
virtual int switchOff() = 0;
};