54 throw std::invalid_argument(
"Invalid LED name specified");
63 Led(std::string led_dev)
68 throw std::invalid_argument(
"Invalid LED name specified");
78 Led(
void* led_context)
82 throw std::invalid_argument(
"Invalid LED name specified");
Result
Definition: types.hpp:204
mraa_result_t mraa_led_set_brightness(mraa_led_context dev, int value)
Result setBrightness(int value)
Definition: led.hpp:101
struct _led * mraa_led_context
Definition: led.h:47
mraa_led_context mraa_led_init_raw(const char *led_dev)
mraa_led_context mraa_led_init(int led)
int mraa_led_read_max_brightness(mraa_led_context dev)
Result trigger(const char *trigger)
Definition: led.hpp:135
Led(int led)
Definition: led.hpp:49
Led(std::string led_dev)
Definition: led.hpp:63
mraa_result_t mraa_led_set_trigger(mraa_led_context dev, const char *trigger)
Result clearTrigger()
Definition: led.hpp:146
int readBrightness()
Definition: led.hpp:112
Led(void *led_context)
Definition: led.hpp:78
int mraa_led_read_brightness(mraa_led_context dev)
API to Light Emitting Diode.
Definition: led.hpp:41
mraa_result_t mraa_led_clear_trigger(mraa_led_context dev)
~Led()
Definition: led.hpp:89
int readMaxBrightness()
Definition: led.hpp:123
mraa_result_t mraa_led_close(mraa_led_context dev)