mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Updated the ws2811 to allow for different timing schemes
Former-commit-id: b58a9766da9e4f6b2f64683574cddb964aaf3b04
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user