LEDManager
LED control and visual feedback#include <LEDManager.h>
Public Member Functions | |
| LEDManager () | |
| ~LEDManager ()=default | |
| void | init () |
| void | startAnimationTask () |
| void | stopAnimationTask () |
| void | setLoadingState (bool on) |
| void | flashColor (uint8_t r, uint8_t g, uint8_t b, int brightness, int duration) |
| void | activate () |
| void | updateLastEncoderMovementTime () |
| void | setMainColor (const String &colorName="") |
| bool | isLoading () const |
| bool | isPulsating () const |
| int | getBrightness () const |
| bool | isInitAnimationComplete () const |
| TaskHandle_t | getAnimationTaskHandle () const |
| void | restartAnimationTask () |
Detailed Description
LED Animation Manager
Controls the NeoPixel LED ring with various animation effects. Runs on dedicated FreeRTOS task for consistent timing.
Animation Priority Order:
- Fade transitions
- Flash effects
- Loading animation
- Init boot sequence
- Idle pulsating
Constructor & Destructor Documentation
◆ LEDManager()
| CloudMouse::Hardware::LEDManager::LEDManager | ( | ) |
◆ ~LEDManager()
|
default |
Member Function Documentation
◆ activate()
| void CloudMouse::Hardware::LEDManager::activate | ( | ) |
◆ flashColor()
| void CloudMouse::Hardware::LEDManager::flashColor | ( | uint8_t | r, |
| uint8_t | g, | ||
| uint8_t | b, | ||
| int | brightness, | ||
| int | duration | ||
| ) |
◆ getAnimationTaskHandle()
|
inline |
◆ getBrightness()
|
inline |
◆ init()
| void CloudMouse::Hardware::LEDManager::init | ( | ) |
◆ isInitAnimationComplete()
|
inline |
◆ isLoading()
|
inline |
◆ isPulsating()
|
inline |
◆ restartAnimationTask()
| void CloudMouse::Hardware::LEDManager::restartAnimationTask | ( | ) |
◆ setLoadingState()
| void CloudMouse::Hardware::LEDManager::setLoadingState | ( | bool | on | ) |
◆ setMainColor()
| void CloudMouse::Hardware::LEDManager::setMainColor | ( | const String & | colorName = "" | ) |
◆ startAnimationTask()
| void CloudMouse::Hardware::LEDManager::startAnimationTask | ( | ) |
◆ stopAnimationTask()
| void CloudMouse::Hardware::LEDManager::stopAnimationTask | ( | ) |
◆ updateLastEncoderMovementTime()
| void CloudMouse::Hardware::LEDManager::updateLastEncoderMovementTime | ( | ) |