Led Class
This file defines the LED interface for libmraa
Item Index
Methods
Led
(
Number
-
led
Instantiates an LED object
Parameters:
-
led
NumberLED index to use
Returns:
Number:
Led
(
Number
-
led_dev
Instantiates an LED object
Parameters:
-
led_dev
StringLED function name to use
Returns:
Number:
setBrightness
(
Enum Result
-
value
Set LED brightness value
Parameters:
-
value
NumberValue to set LED brightness
Returns:
Enum Result:
Result of operation
readBrightness
()
Number
Read LED brightness value
Returns:
Number:
LED brightness value
readMaxBrightness
()
Number
Read LED maximum brightness value
Returns:
Number:
LED max brightness value
trigger
(
Enum Result
-
trigger
Set LED trigger
Parameters:
-
trigger
StringType of trigger to set
Returns:
Enum Result:
Result of operation
clearTrigger
()
Enum Result
Clear active LED trigger
Returns:
Enum Result:
Result of operation