|
AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
|
ESP32-specific implementation of ILEDController. More...
#include <led_controller.h>
Public Member Functions | |
| LEDController (uint8_t pin) | |
| void | setup (uint32_t initialState=0) override |
| void | setState (bool state) override |
| void | toggle () override |
| void | startBlink (uint32_t intervalMs, int16_t count=-1) override |
| Start a blink sequence. | |
| void | stopBlink () override |
| Stop any running blink and restore the pre-blink state. | |
| void | update (uint32_t now) override |
| Drive timed behaviour — must be called every loop iteration. | |
| bool | isBlinking () const override |
| Returns true if a blink sequence is currently running. | |
| LEDController (uint8_t pin) | |
| Constructs an LEDController for a specific pin. | |
| void | setup (uint32_t initialState=0) override |
| void | setState (bool state) override |
| void | toggle () override |
| void | startBlink (uint32_t intervalMs, int16_t count=-1) override |
| Start a blink sequence. | |
| void | stopBlink () override |
| Stop any running blink and restore the pre-blink state. | |
| void | update (uint32_t now) override |
| Drive timed behaviour — must be called every loop iteration. | |
| bool | isBlinking () const override |
| Returns true if a blink sequence is currently running. | |
Public Member Functions inherited from ILEDController | |
| virtual | ~ILEDController ()=default |
ESP32-specific implementation of ILEDController.
nRF52840-specific implementation of ILEDController interface
Supports immediate setState/toggle and non-blocking blink sequences driven by update() calls from the main loop.
Controls an LED on a GPIO pin using the Arduino digitalWrite API.
Definition at line 13 of file esp32/include/led_controller.h.
|
explicit |
Definition at line 3 of file esp32/src/led_controller.cpp.
|
explicit |
Constructs an LEDController for a specific pin.
| pin | GPIO pin number to which the LED is connected |
|
inlineoverridevirtual |
Returns true if a blink sequence is currently running.
Implements ILEDController.
Definition at line 25 of file esp32/include/led_controller.h.
|
inlineoverridevirtual |
Returns true if a blink sequence is currently running.
Implements ILEDController.
Definition at line 27 of file nrf52840/include/led_controller.h.
|
overridevirtual |
Implements ILEDController.
Definition at line 12 of file esp32/src/led_controller.cpp.
|
overridevirtual |
Implements ILEDController.
|
overridevirtual |
Implements ILEDController.
Definition at line 5 of file esp32/src/led_controller.cpp.
|
overridevirtual |
Implements ILEDController.
|
overridevirtual |
Start a blink sequence.
| intervalMs | Half-period in ms (LED on for intervalMs, off for intervalMs) |
| count | Number of on/off cycles; -1 = blink indefinitely until stopBlink() |
Implements ILEDController.
Definition at line 23 of file esp32/src/led_controller.cpp.
|
overridevirtual |
Start a blink sequence.
| intervalMs | Half-period in ms (LED on for intervalMs, off for intervalMs) |
| count | Number of on/off cycles; -1 = blink indefinitely until stopBlink() |
Implements ILEDController.
|
overridevirtual |
Stop any running blink and restore the pre-blink state.
Implements ILEDController.
Definition at line 35 of file esp32/src/led_controller.cpp.
|
overridevirtual |
Stop any running blink and restore the pre-blink state.
Implements ILEDController.
|
overridevirtual |
Implements ILEDController.
Definition at line 21 of file esp32/src/led_controller.cpp.
|
overridevirtual |
Implements ILEDController.
|
overridevirtual |
Drive timed behaviour — must be called every loop iteration.
| now | Current time in milliseconds (e.g. millis()) |
Implements ILEDController.
Definition at line 43 of file esp32/src/led_controller.cpp.
|
overridevirtual |
Drive timed behaviour — must be called every loop iteration.
| now | Current time in milliseconds (e.g. millis()) |
Implements ILEDController.