|
LightHub 4.6.0
Open-source smart home controller firmware
|
RGB status LED controller. More...
#include <statusled.h>
Public Member Functions | |
| StatusLED (uint8_t pattern=0) | |
| Initializes the LED pins and sets the initial pattern. | |
| void | set (uint8_t pattern) |
| Sets the steady/blinking LED pattern. | |
| void | show (uint8_t pattern) |
| Immediately drives the pins to the given color (no state change). | |
| void | poll () |
| Advances blink/flash timing; call from the main loop. | |
| void | flash (uint8_t pattern) |
| Shows the given pattern once (single flash). | |
RGB status LED controller.
Drives the onboard RGB status LED (Due: pins 50-52, AVR: 47-49) with color patterns, single flashes and slow/fast blinking. Used by the system to signal state (e.g. errors blink red).
| StatusLED::StatusLED | ( | uint8_t | pattern = 0 | ) |
Initializes the LED pins and sets the initial pattern.
| pattern | Initial LED pattern bits. |
| void StatusLED::flash | ( | uint8_t | pattern | ) |
Shows the given pattern once (single flash).
| pattern | LED pattern bits to flash. |
| void StatusLED::poll | ( | ) |
Advances blink/flash timing; call from the main loop.
| void StatusLED::set | ( | uint8_t | pattern | ) |
Sets the steady/blinking LED pattern.
| pattern | LED pattern bits. |
| void StatusLED::show | ( | uint8_t | pattern | ) |
Immediately drives the pins to the given color (no state change).
| pattern | LED pattern bits. |