Files
RemoteMapper-ESP32/include/led_indicator.h
T
cuicuiV5 86f5d801b2 feat: add WOL network wake-up and remote battery monitoring with low-battery LED alert
- Feature 1: Remote Battery Monitoring & Low-Battery LED Alert (Closes #5)
  * Parse BLE Battery Service (0x180F) & Characteristic (0x2A19) with notifications and polling
  * Double-pulse white LED blink on onboard NeoPixel when battery <= 15%
  * Display real-time battery percentage in Web UI status bar and BLE tab

- Feature 2: Wake-on-LAN (WOL) & Advanced Actions Architecture (Closes #1)
  * Implement UDP broadcast WOL Magic Packet builder and sender (ACTION_WOL = 11)
  * Support MAC parsing in colon, dash, or 12-char hex formats, with port configuration
  * Add 'Advanced Extension' mode in Keymap UI with WOL tester and placeholders for Macro, Webhook, and MQTT
  * Persist wol_mac in NVS and handle immediate trigger on keypress

- Docs: Update README.md and ROADMAP.md reflecting new features and future plans
- Build: Update prebuilt firmware binaries in RemoteMapper-Flasher/bin
2026-09-12 16:44:29 +08:00

27 lines
612 B
C

#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
LED_STATE_WAIT_CONNECTION = 0, // Red solid
LED_STATE_CONNECTED, // Green solid
LED_STATE_MIC_STREAMING, // Blue solid
LED_STATE_HID_KEY_PRESS, // Yellow flash
LED_STATE_MIC_KEY_PRESS // Red flash
} led_state_t;
void led_indicator_init(void);
void led_indicator_set(led_state_t state);
void led_indicator_trigger_key(bool is_voice_key);
void led_indicator_set_layer_color(uint32_t rgb_color);
void led_indicator_set_low_battery(bool is_low);
#ifdef __cplusplus
}
#endif