blogic / uledd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

μledd

LGPL-2.1-only license CI

About

μledd is OpenWrt's micro daemon which 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/out between colours.

Install

μledd is available via OpenWrt package feeds, so the installation should be straight forward.

opkg install uledd

Usage examples

Turn green LED on and red LED off

ubus call led set '{ "leds": { "ap:green:status": 255, "ap:red:status": 0 } }'

Make green LED and red LED 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 }'

About

License:GNU Lesser General Public License v2.1


Languages

Language:C 60.8%Language:Perl 35.1%Language:CMake 4.1%