Implemented set transform for the json server

This commit is contained in:
johan
2013-08-19 19:57:35 +02:00
parent 0a9bbe86a4
commit cb38baa985
3 changed files with 86 additions and 1 deletions

View File

@@ -21,6 +21,16 @@ class Hyperion : public QObject
{
Q_OBJECT
public:
enum Color
{
RED, GREEN, BLUE
};
enum Transform
{
THRESHOLD, GAMMA, BLACKLEVEL, WHITELEVEL
};
static LedString createLedString(const Json::Value& ledsConfig);
Hyperion(const Json::Value& jsonConfig);
@@ -33,6 +43,8 @@ public:
void setColors(int priority, std::vector<RgbColor> &ledColors, const int timeout_ms);
void setTransform(Transform transform, Color color, double value);
void clear(int priority);
void clearall();