Files
MTGcompanion/main/led_manager.h

33 lines
599 B
C

/*
* 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