extend Fadecandy driver (#109)

* add functions to send sysEx (not working correctly atm)

* make new values avail via config
This commit is contained in:
redPanther
2016-07-12 22:37:45 +02:00
committed by brindosch
parent 7b9b9bcdef
commit 48d20529d3
3 changed files with 120 additions and 16 deletions

View File

@@ -305,10 +305,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
}
else if (type == "fadecandy")
{
const std::string host = deviceConfig.get("output", "127.0.0.1").asString();
const uint16_t port = deviceConfig.get("port", 7890).asInt();
const uint16_t channel = deviceConfig.get("channel", 0).asInt();
device = new LedDeviceFadeCandy(host, port, channel);
device = new LedDeviceFadeCandy(deviceConfig);
}
else if (type == "udp")
{