Phase 7: EC11 encoder, life counter views, WS2812B RMT + LEDC buzzer feedback, E2E UI state machine; document build/hardware notes

This commit is contained in:
2026-09-09 18:36:17 +02:00
parent 8a95e1735a
commit 01c24d17b6
14 changed files with 914 additions and 29 deletions

33
main/led_manager.h Normal file
View File

@@ -0,0 +1,33 @@
/*
* MTG RFID Companion - WS2812B Neopixel LED manager (RMT)
*
* Phase 7 Step 7.3: Single WS2812B driver on GPIO 27. LED holds the last
* transmitted color until it is overwritten.
*/
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Initialize RMT TX channel for the Neopixel.
*/
esp_err_t led_manager_init(void);
/**
* @brief Set the LED color immediately (GRB order internally).
*/
esp_err_t led_manager_set_color(uint8_t r, uint8_t g, uint8_t b);
/**
* @brief Turn the LED off.
*/
esp_err_t led_manager_off(void);
#ifdef __cplusplus
}
#endif