Led class
LED wrapper functions for Linux userspace sysfs LEDs.
Properties
Methods
-
dispose(
) → void - Releases all internal native resources.
-
getBrightness(
) → int - Returns the brightness of the led.
-
getErrno(
) → int - Returns the libc errno of the last failure that occurred.
-
getLedInfo(
) → String - Returns a string representation of the led handle.
-
getLedName(
) → String - Returns the name of the led.
-
getMaxBrightness(
) → int - Returns the maximum possible brightness of the led.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → bool - Reads the state of the led.
-
setBrightness(
int value) → void -
Sets the brightness of the led to
value
. -
toString(
) → String -
A string representation of this object.
inherited
-
write(
bool value) → void -
Sets the state of the led to
value
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getLedErrorCode(
int value) → LedErrorCode -
Converts the native error code
value
to LedErrorCode.