hyperion.ng/libsrc/leddevice/schemas/schema-ws281x.json

66 lines
1.5 KiB
JSON
Raw Normal View History

{
"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": 5,
"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",
2018-12-31 06:11:08 +01:00
"enum" : ["subtract_minimum","sub_min_cool_adjust","sub_min_warm_adjust","white_off"],
"default": "subtract_minimum",
"options" : {
2018-12-31 06:11:08 +01:00
"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": 1,
"append" : "edt_append_ms",
"minimum": 1,
"maximum": 1000,
"access" : "expert",
"propertyOrder" : 8
}
},
"additionalProperties": true
}