classstuds::Led

sys::Obj
  studs::Led

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

See Led chapter for details.

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

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

off

static Void off(Str name)

Convenience for set(name, false).

on

static Void on(Str name)

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.