|
Ares LoRa Firmware
|
LED API. More...
#include <stdint.h>
Go to the source code of this file.
Enumerations | |
| enum | led_state { LED_STATE_OFF , LED_STATE_ON , LED_STATE_BLINK , LED_STATE_FADE , LED_STATE_INVALID } |
| enum | led { LED_0 , LED_1 , LED_INVALID } |
Functions | |
| int | update_led_state (enum led led, uint8_t new_state) |
LED API.
| enum led |
| enum led_state |
| int update_led_state | ( | enum led | led, |
| uint8_t | new_state ) |
Update or retrieve the LED state.
| [in] | led | The LED to update the state for. |
| [in] | new_state | The new state of the LED. If invalid, retrieves the current state. |