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:
33
main/led_manager.h
Normal file
33
main/led_manager.h
Normal 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
|
||||
Reference in New Issue
Block a user