Support for /sys/class/leds/red/brightness instead of backlight
devbis opened this issue · comments
Ivan Belokobylskiy commented
OpenWrt for Lumi gateway will migrate to new drivers of LED lights soon.
https://github.com/devbis/openwrt/commit/1a3adc95ccee91cad8766e413cc038cd5fb1b778
The new device paths will be:
/sys/class/leds/red/brightness
/sys/class/leds/green/brightness
/sys/class/leds/blue/brightness
And range 0-255 instead of 0-100.
Do you plan to add support for this schema in your application?
Proposal: you can check for the new paths and fallback to the old ones if they are missing
Beetle commented
Отлично. Так даже проще с яркостью работать...