Rpi ws281x submodule update (#441)

* Updated rpi_ws281x submodule version
added dma channel option

* update translations
This commit is contained in:
penfold42
2017-05-24 02:14:27 +10:00
committed by redPanther
parent 93d520706e
commit 564d4578d3
8 changed files with 17 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ bool LedDeviceWS281x::init(const QJsonObject &deviceConfig)
}
_led_string.freq = deviceConfig["freq"].toInt(800000ul);
_led_string.dmanum = deviceConfig["dmanum"].toInt(5);
_led_string.dmanum = deviceConfig["dma"].toInt(5);
_led_string.channel[_channel].gpionum = deviceConfig["gpio"].toInt(18);
_led_string.channel[_channel].count = deviceConfig["leds"].toInt(256);
_led_string.channel[_channel].invert = deviceConfig["invert"].toInt(0);

View File

@@ -14,17 +14,23 @@
"default": 18,
"propertyOrder" : 2
},
"dma": {
"type": "integer",
"title":"edt_dev_spec_dmaNumber_title",
"default": 5,
"propertyOrder" : 3
},
"invert": {
"type": "boolean",
"title":"edt_dev_spec_invert_title",
"default": false,
"propertyOrder" : 3
"propertyOrder" : 4
},
"rgbw": {
"type": "boolean",
"title":"edt_dev_spec_useRgbwProtocol_title",
"default": false,
"propertyOrder" : 3
"propertyOrder" : 5
},
"whiteAlgorithm": {
"type": "string",
@@ -34,7 +40,7 @@
"options" : {
"enum_titles" : ["edt_dev_enum_subtract_minimum", "edt_dev_enum_sub_min_warm_adjust", "edt_dev_enum_white_off"]
},
"propertyOrder" : 4
"propertyOrder" : 6
},
"latchTime": {
"type": "integer",
@@ -44,7 +50,7 @@
"minimum": 1,
"maximum": 1000,
"access" : "expert",
"propertyOrder" : 5
"propertyOrder" : 7
}
},
"additionalProperties": true