classstuds::Led
sys::Obj studs::Led
Led manages LED state using /sys/class/leds.
See Led chapter for details.
- blink
static Void blink(Str name, Duration onDur, Duration offDur)Blink the given led using the given on/off pattern.
- off
Convenience for
set(name, false).- on
Convenience for
set(name, true).- set
static Void set(Str name, Bool on)Set the on/off state for given led.
- trigger
static Void trigger(Str name, Str val)Set led trigger to given value.