Updated the ws2811 to allow for different timing schemes

Former-commit-id: b58a9766da9e4f6b2f64683574cddb964aaf3b04
This commit is contained in:
T. van der Zwan
2013-12-16 20:36:54 +00:00
parent 986a7a90fc
commit 5377c5adca
3 changed files with 190 additions and 54 deletions

View File

@@ -49,10 +49,10 @@ LedDevice* Hyperion::createDevice(const Json::Value& deviceConfig)
}
else if (type == "ws2811")
{
const std::string type = deviceConfig["type"].asString();
const std::string output = deviceConfig["output"].asString();
const bool rate = deviceConfig["fast"].asBool();
LedDeviceWs2811 * deviceWs2811 = new LedDeviceWs2811(output, rate);
LedDeviceWs2811 * deviceWs2811 = new LedDeviceWs2811(output);
deviceWs2811->open();
device = deviceWs2811;