hyperion.ng/libsrc/leddevice/schemas/schema-ws281x.json
LordGrey 8a785e70c8
LED-Device updates (#1315)
* SPI Fix - Free allocated memory in case of invert

* Remove development statement

* UI updates

* Minor corrections

* Tpm2net Fix - Free allocated memory

* LGTM Finding

* Add config directory and user type to SysInfo

* WS281x - Ensure that device runs with root priviliges

* WS281x - Update DMA defauls as per rpi_ws281x recommendation

* Support Sysinfo for Qt < 5.10

* Address LGTM finding
2021-09-15 10:31:56 +02:00

75 lines
1.7 KiB
JSON

{
"type":"object",
"required":true,
"properties":{
"leds": {
"type": "integer",
"title":"edt_dev_spec_maximumLedCount_title",
"default": 256,
"propertyOrder" : 1
},
"gpio": {
"type": "integer",
"title":"edt_dev_spec_gpioNumber_title",
"default": 18,
"propertyOrder" : 2
},
"dma": {
"type": "integer",
"title":"edt_dev_spec_dmaNumber_title",
"default": 10,
"propertyOrder" : 3
},
"pwmchannel": {
"type": "integer",
"title":"edt_dev_spec_pwmChannel_title",
"default": 0,
"minimum": 0,
"maximum": 1,
"propertyOrder" : 4
},
"invert": {
"type": "boolean",
"title":"edt_dev_spec_invert_title",
"default": false,
"propertyOrder" : 5
},
"rgbw": {
"type": "boolean",
"title":"edt_dev_spec_useRgbwProtocol_title",
"default": false,
"propertyOrder" : 6
},
"whiteAlgorithm": {
"type": "string",
"title":"edt_dev_spec_whiteLedAlgor_title",
"enum" : ["subtract_minimum","sub_min_cool_adjust","sub_min_warm_adjust","white_off"],
"default": "subtract_minimum",
"options" : {
"enum_titles" : ["edt_dev_enum_subtract_minimum", "edt_dev_enum_sub_min_cool_adjust","edt_dev_enum_sub_min_warm_adjust", "edt_dev_enum_white_off"]
},
"propertyOrder" : 7
},
"latchTime": {
"type": "integer",
"title":"edt_dev_spec_latchtime_title",
"default": 0,
"append" : "edt_append_ms",
"minimum": 0,
"maximum": 1000,
"access" : "expert",
"propertyOrder" : 8
},
"rewriteTime": {
"type": "integer",
"title":"edt_dev_general_rewriteTime_title",
"default": 1000,
"append" : "edt_append_ms",
"minimum": 0,
"access" : "expert",
"propertyOrder" : 9
}
},
"additionalProperties": true
}