mraa
2.0.0
Low Level Skeleton Library for Communication on GNU/Linux platforms
|
This file defines the LED interface for libmraa
Public Member Functions | |
Led (int led) | |
Led (std::string led_dev) | |
Led (void *led_context) | |
~Led () | |
Result | setBrightness (int value) |
int | readBrightness () |
int | readMaxBrightness () |
Result | trigger (const char *trigger) |
Result | clearTrigger () |
|
inline |
Instantiates an LED object
led | LED index to use |
|
inline |
Instantiates an LED object
led_dev | LED function name to use |
|
inline |
LED Constructor, takes a pointer to a LED context and initialises the LED class
led_context | void * to LED context |
|
inline |
LED object destructor
|
inline |
Set LED brightness value
value | Value to set LED brightness |
|
inline |
Read LED brightness value
|
inline |
Read LED maximum brightness value
|
inline |
Set LED trigger
trigger | Type of trigger to set |
|
inline |
Clear active LED trigger