mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Implemented set transform for the json server
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user