Files
esp-anchor/components/led_indicator/include/led_indicator.h
T
2026-05-13 14:44:38 +02:00

15 lines
524 B
C

#pragma once
typedef enum {
LED_OFF,
LED_PROVISIONING, /* 200ms toggle — awaiting provisioning */
LED_CONNECTING, /* 1000ms toggle — connecting to WiFi/MQTT */
LED_SCANNING, /* solid on — normal BLE scanning */
LED_CALIBRATING, /* 500ms toggle — calibration in progress */
LED_SELECTED, /* triple-flash loop — physical identification */
LED_ERROR, /* 50ms rapid blink */
} led_state_t;
void led_indicator_init(void);
void led_indicator_set(led_state_t state);