Wirepas SDK
|
Board-independent LED functions. More...
Board-independent LED functions.
Definition in file led.h.
Go to the source code of this file.
Functions | |
void | Led_init (void) |
Initialize Led module. More... | |
led_res_e | Led_set (uint8_t led_id, bool state) |
Turn the given LED on or off. More... | |
bool | Led_get (uint8_t led_id) |
Get the given LED current state. More... | |
led_res_e | Led_toggle (uint8_t led_id) |
Toggle the given LED. More... | |
uint8_t | Led_getNumber (void) |
Get number of leds available. More... | |
Enumerations | |
enum | led_res_e { LED_RES_OK = 0, LED_RES_INVALID_ID = 1, LED_RES_UNINITIALIZED = 2 } |
List of return code. More... | |
bool Led_get | ( | uint8_t | led_id | ) |
Get the given LED current state.
led_id | Id of the led |
uint8_t Led_getNumber | ( | void | ) |
Get number of leds available.
void Led_init | ( | void | ) |
Initialize Led module.
Example on use:
led_res_e Led_set | ( | uint8_t | led_id, |
bool | state | ||
) |
led_res_e Led_toggle | ( | uint8_t | led_id | ) |
Toggle the given LED.
led_id | Id of the led |
enum led_res_e |