|
Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
LED flasher for beat and event indication. More...
#include <flash_led.hpp>
Public Member Functions | |
| FlashLed (LedImpl &led, uint32_t flash_ms=50) | |
| Construct LED flasher. | |
| void | flash () |
| Flash LED. | |
| void | update () |
| Update flash state. | |
| bool | isActive () const |
| Check if LED is currently flashing. | |
| void | setFlashDuration (uint32_t flash_ms) |
| Set flash duration. | |
LED flasher for beat and event indication.
Provides timed LED flashing for visual feedback. Encapsulates flash timing patterns for clean application code.
| LedImpl | LED implementation |
| TimerImpl | Timer implementation for flash timing |
Definition at line 27 of file flash_led.hpp.
|
inline |
Construct LED flasher.
| led | LED instance to control |
| flash_ms | Flash duration in milliseconds (default: 50ms) |
Definition at line 34 of file flash_led.hpp.
|
inline |
Flash LED.
Starts LED flash. Call update() regularly to handle timing.
Definition at line 42 of file flash_led.hpp.
References sbl::core::patterns::timing::NonBlockingDelay< SystemTimeImpl >::start().
|
inline |
Check if LED is currently flashing.
Definition at line 64 of file flash_led.hpp.
|
inline |
Set flash duration.
| flash_ms | New flash duration in milliseconds |
Definition at line 72 of file flash_led.hpp.
|
inline |
Update flash state.
Call regularly from main loop to handle flash timing.
Definition at line 53 of file flash_led.hpp.