feat: Adiciona suporte para controle de LED RGB e animações de estado
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef LED_INDICATOR_H
|
||||
#define LED_INDICATOR_H
|
||||
|
||||
#include "driver/gpio.h"
|
||||
#include "esp_err.h"
|
||||
|
||||
typedef enum {
|
||||
LED_OFF,
|
||||
LED_PAIRING,
|
||||
LED_CONNECTED,
|
||||
LED_DISCONNECTED,
|
||||
LED_RELAY_ON,
|
||||
LED_RELAY_OFF,
|
||||
LED_FACTORY_RESET
|
||||
} led_state_t;
|
||||
|
||||
esp_err_t led_indicator_init(gpio_num_t gpio_num);
|
||||
void led_indicator_set_state(led_state_t state);
|
||||
|
||||
#endif // LED_INDICATOR_H
|
||||
Reference in New Issue
Block a user