018f57e713fa cmake: bump version to 1.0.1
b90c65be87c5 ubus: add state method
034e3a77680d scene: add dumping of state to blobmsg
d21b0946e6f6 scene: add all LEDs during scene creation
f31a6f2b8c3b led: add dumping of state to blobmsg
cead0f7f54f6 add support for scenes with priorities
8637a86307d7 led: remove string format from led_state_str
0eaa67a5a687 led: add led_from_path
8243708905aa tests: add basic blob-led unit test
99bcdaa306f7 refactor blob LED parsing into separate unit
210c5e3c5128 led: change sysfs LED path for unit tests
310a676e50d7 add cram based unit tests
eb7acbb08e36 led: led_add: add debug output
ca9c762fb29a led: make timer tick interval variable
44d072039680 led: allow running and stopping
df0c7772c9c6 timer: add missing includes
2aab48d1143c cmake: add sources into static library
83d4189606ca fix multiple timer drifts by using singular timer for all LEDs
3abe097ebecf log: output function name in debug log messages
5c768b337df8 led: set current brightness only after success
cf93720951bc allow overriding of default ubus socket path
b642b650a612 led: fix initial LED fading out
ba00ca0e886c fix deprecated SPDX license identifier
766448f68e69 convert content of README into Markdown format
079e773e3250 rename README into README.md
76eb126d9eb5 add LICENSE file
7a006926c442 add initial GitLab CI support
cc94cd4c59b0 replace stderr based logging with ulog
7aa9c35a9581 add basic application versioning
ecd26be4c5dd add basic logging
cc42a9c79ad9 factor out ubus stuff into separate unit
13a589678c29 factor out led stuff into separate unit
7763972de980 fix sign issue spotted by compiler
aef09580c960 cmake: enable extra compiler warnings
97663b4e1d15 cmake: fix include dirs and libs lookup
875a9e15b10a fixes a small bug that failed to reset the state to LED_SET when reconfiguring a LED
Signed-off-by: Petr Štetiar <ynezz@true.cz>
"This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1"
Signed-off-by: Petr Štetiar <ynezz@true.cz>
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>