classstuds::Led

sys::Obj
  studs::Led

Led manages LED state using /sys/class/leds.

See Led chapter for details.

const static Void blink(Str name, Duration onDur, Duration offDur)

Blink the given led using the given on/off pattern.

off

const static Void off(Str name)

Convenience for set(name, false).

on

const static Void on(Str name)

Convenience for set(name, true).

set

const static Void set(Str name, Bool on)

Set the on/off state for given led.

trigger

const static Void trigger(Str name, Str val)

Set led trigger to given value.