Added hold function and updated doc
This commit is contained in:
parent
d6ed7cb81f
commit
3e83758f05
8 changed files with 141 additions and 105 deletions
|
|
@ -35,11 +35,12 @@ private:
|
|||
SAction m_enc_cw[4];
|
||||
SAction m_enc_ccw[4];
|
||||
|
||||
void init_buttons(); // Buttons aus NVM-Config initialisieren
|
||||
void poll_vendor(); // Eingehende Serial-Pakete (PC→Board) verarbeiten
|
||||
void processEvents(); // Queue leeren, Aktionen ausführen
|
||||
void execute_action(SAction); // Einzelne Aktion ausführen (HID / Serial)
|
||||
void updateLEDs(); // Dirty-LEDs in WS2812-Buffer schreiben
|
||||
void init_buttons(); // Buttons aus NVM-Config initialisieren
|
||||
void poll_vendor(); // Eingehende Serial-Pakete (PC→Board) verarbeiten
|
||||
void processEvents(); // Queue leeren, Aktionen ausführen
|
||||
void execute_action_down(SAction action, uint8_t key_id); // Taste drücken (Hold-Start)
|
||||
void execute_action_up(SAction action, uint8_t key_id); // Taste losgelassen (Hold-Ende)
|
||||
void updateLEDs(); // Dirty-LEDs in WS2812-Buffer schreiben
|
||||
|
||||
// ── Config-Empfangspuffer ─────────────────────────────────────────────────
|
||||
uint8_t m_cfg_buf[223]; // sizeof(SDeviceConfig) = 223 Bytes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue