forked from jappel/VersaMCU
Added hold function and updated doc
This commit is contained in:
parent
d6ed7cb81f
commit
3e83758f05
8 changed files with 141 additions and 105 deletions
|
|
@ -61,13 +61,8 @@ public:
|
|||
CButton();
|
||||
|
||||
// Initialisierung (ersetzt Konstruktor-Parameter).
|
||||
// led_index = -1 → kein LED (Encoder-SW-Buttons).
|
||||
void init(uint8_t key_id, int8_t led_index, SAction action, RGB base = RGB());
|
||||
|
||||
// Hooks für Tastendruck/-loslassen.
|
||||
// Reserviert für zukünftige Logik (Hold-Aktionen, Toggle-Modus, …).
|
||||
void on_press();
|
||||
void on_release();
|
||||
void init(uint8_t key_id, int8_t led_index, SAction action,
|
||||
RGB base = RGB());
|
||||
|
||||
// ── LED Layer 1: base ─────────────────────────────────────────────────────
|
||||
// Idle-Farbe, aus NVM geladen oder von Windows-App gesetzt.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue