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:
penfold42
2016-12-02 02:16:59 +11:00
committed by redPanther
parent 080059cbf5
commit 1670ec58a7
8 changed files with 70 additions and 22 deletions

View 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
}