mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
led device cleanup, bug fix and schemas (#304)
* sk6812SPI was buggy cleaned up code - make sk6812spi and ws2812spi more consistent * led device schema updates
This commit is contained in:
33
libsrc/leddevice/schemas/schema-sk6812spi.json
Normal file
33
libsrc/leddevice/schemas/schema-sk6812spi.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"type":"object",
|
||||
"required":true,
|
||||
"properties":{
|
||||
"output": {
|
||||
"type": "string",
|
||||
"title":"SPI path",
|
||||
"enum" : ["/dev/spidev0.0","/dev/spidev0.1"],
|
||||
"propertyOrder" : 1
|
||||
},
|
||||
"rate": {
|
||||
"type": "integer",
|
||||
"title":"Baudrate",
|
||||
"default": 3000000,
|
||||
"propertyOrder" : 2
|
||||
},
|
||||
"invert": {
|
||||
"type": "boolean",
|
||||
"format": "checkbox",
|
||||
"title":"Invert signal",
|
||||
"default": false,
|
||||
"propertyOrder" : 3
|
||||
},
|
||||
"whiteAlgorithm": {
|
||||
"type": "string",
|
||||
"title":"White LED algorithm",
|
||||
"enum" : ["subtract_minimum","sub_min_warm_adjust","white_off"],
|
||||
"default": "subtract_minimum",
|
||||
"propertyOrder" : 4
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
Reference in New Issue
Block a user