mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
compile fix (#114)
* multi fix commit - refactoring leddevicefactory - adalight: default for "delayAfterConnect" is 1s now - needed for most arduino's because of there special behaviour on open - fadecandy: new option for disabling configuration send - if you want to keep your fadecandy defaults - Hyperion.cpp: simplify createSmoothing discussed in #105 - smoothing: -- add option for continuous output -- when updatedelay>0 and continousOutput is disabled, buffer is flushed correctly after no input is detected * add doxygen to travis * fix code * fix compile fir ws281x pwm * remove git merge stuff * fix compile
This commit is contained in:
@@ -296,14 +296,14 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
|
||||
else if (type == "ws281x")
|
||||
{
|
||||
device = new LedDeviceWS281x(
|
||||
deviceConfig.get("gpio", 18).asInt();
|
||||
leds = deviceConfig.get("leds", 256).asInt();
|
||||
freq = deviceConfig.get("freq", (Json::UInt)800000ul).asInt();
|
||||
dmanum = deviceConfig.get("dmanum", 5).asInt();
|
||||
deviceConfig.get("pwmchannel", 0).asInt();
|
||||
deviceConfig.get("invert", 0).asInt();
|
||||
deviceConfig.get("rgbw", 0).asInt();
|
||||
whiteAlgorithm = deviceConfig.get("white_algorithm","").asString();
|
||||
deviceConfig.get("gpio", 18).asInt(),
|
||||
deviceConfig.get("leds", 256).asInt(),
|
||||
deviceConfig.get("freq", (Json::UInt)800000ul).asInt(),
|
||||
deviceConfig.get("dmanum", 5).asInt(),
|
||||
deviceConfig.get("pwmchannel", 0).asInt(),
|
||||
deviceConfig.get("invert", 0).asInt(),
|
||||
deviceConfig.get("rgbw", 0).asInt(),
|
||||
deviceConfig.get("white_algorithm","").asString()
|
||||
);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user