classstuds::Led

sys::Obj
  studs::Led

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

Source

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

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

off

Source

static Void off(Str name)

Convenience for set(name, false).

on

Source

static Void on(Str name)

Convenience for set(name, true).

set

Source

static Void set(Str name, Bool on)

Set the on/off state for given led.

trigger

Source

static Void trigger(Str name, Str val)

Set led trigger to given value.