uledd: add a tiny ubus frontend for PWM/RGB leds 4972/head
authorJohn Crispin <john@phrozen.org>
Thu, 19 Oct 2017 12:46:06 +0000 (14:46 +0200)
committerJohn Crispin <john@phrozen.org>
Thu, 19 Oct 2017 14:37:32 +0000 (16:37 +0200)
commit282432de33d193c3835e56226afda7218af3f791
tree3d815faa555d0d73ceb30df9a5b8a235d7ab4ae3
parent9b9ef2375d46e5f2eefafe00cd188764287257c4
uledd: add a tiny ubus frontend for PWM/RGB leds

This daemon allows users to control PWM driven RGB LEDs using ubus.
Currently it is possible to make leds blink at different brightnesses
and or make them fade in between colours.

the following call will turn green on and red off:
ubus call led set '{ "leds": { "ap:green:status": 255, "ap:red:status": 0 } }'

the following call will make green and red fade on/off over 2 seconds:
ubus call led set '{ "leds": { "ap:green:status": [0, 255], "ap:red:status": [255, 0] }, "on": 2000, "off": 2000, "fade": 1 }'

Signed-off-by: John Crispin <john@phrozen.org>
utils/uledd/Makefile [new file with mode: 0644]
utils/uledd/files/uledd.init [new file with mode: 0644]