mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Rpi ws281x submodule update (#441)
* Updated rpi_ws281x submodule version added dma channel option * update translations
This commit is contained in:
parent
93d520706e
commit
564d4578d3
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -4,4 +4,4 @@
|
||||
[submodule "dependencies/external/rpi_ws281x"]
|
||||
path = dependencies/external/rpi_ws281x
|
||||
url = https://github.com/hyperion-project/rpi_ws281x.git
|
||||
branch = sk6812
|
||||
branch = master
|
||||
|
@ -385,6 +385,7 @@
|
||||
"edt_dev_spec_useRgbwProtocol_title" : "Nutze RGBW Protokoll",
|
||||
"edt_dev_spec_maximumLedCount_title" : "Maximale Anzahl LEDs",
|
||||
"edt_dev_spec_gpioNumber_title" : "GPIO Nummer",
|
||||
"edt_dev_spec_dmaNumber_title" : "DMA Kanal",
|
||||
"edt_dev_spec_gpioMap_title" : "GPIO Zuweisung",
|
||||
"edt_dev_spec_PBFiFo_title" : "Pi-Blaster FiFo",
|
||||
"edt_dev_spec_gpioBcm_title" : "GPIO Pin",
|
||||
|
@ -387,6 +387,7 @@
|
||||
"edt_dev_spec_useRgbwProtocol_title" : "Use RGBW protocol",
|
||||
"edt_dev_spec_maximumLedCount_title" : "Maximum LED count",
|
||||
"edt_dev_spec_gpioNumber_title" : "GPIO number",
|
||||
"edt_dev_spec_dmaNumber_title" : "DMA channel",
|
||||
"edt_dev_spec_gpioMap_title" : "GPIO mapping",
|
||||
"edt_dev_spec_PBFiFo_title" : "Pi-Blaster FiFo",
|
||||
"edt_dev_spec_gpioBcm_title" : "GPIO Pin",
|
||||
|
@ -342,6 +342,7 @@
|
||||
"edt_dev_spec_useRgbwProtocol_title": "Utilizar el protocolo RGBW",
|
||||
"edt_dev_spec_maximumLedCount_title": "Número máximo de LEDs",
|
||||
"edt_dev_spec_gpioNumber_title": "Número GPIO",
|
||||
"edt_dev_spec_dmaNumber_title" : "Canal DMA",
|
||||
"edt_dev_spec_gpioMap_title": "Mapeo GPIO",
|
||||
"edt_dev_spec_PBFiFo_title": "Pi-Blaster FiFo",
|
||||
"edt_dev_spec_gpioBcm_title": "Pin GPIO",
|
||||
|
1
dependencies/CMakeLists.txt
vendored
1
dependencies/CMakeLists.txt
vendored
@ -5,6 +5,7 @@ if(ENABLE_WS281XPWM)
|
||||
add_library(ws281x
|
||||
external/rpi_ws281x/mailbox.c external/rpi_ws281x/ws2811.c
|
||||
external/rpi_ws281x/pwm.c external/rpi_ws281x/dma.c
|
||||
external/rpi_ws281x/pcm.c
|
||||
external/rpi_ws281x/rpihw.c)
|
||||
endif()
|
||||
|
||||
|
2
dependencies/external/rpi_ws281x
vendored
2
dependencies/external/rpi_ws281x
vendored
@ -1 +1 @@
|
||||
Subproject commit 4f5d727222ef4e48608d43c51b3b932c0840813d
|
||||
Subproject commit f580777219062568d2e43e998ecb0950deff9e99
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user