2026-08-26 07:26:58 +08:00
|
|
|
#ifndef APP_TM1617_H
|
|
|
|
|
#define APP_TM1617_H
|
|
|
|
|
|
|
|
|
|
void app_tm1617_init(void);
|
|
|
|
|
|
|
|
|
|
void app_tm1617_set_rgb(uint8_t color, uint8_t brightness);
|
|
|
|
|
|
|
|
|
|
void app_tm1617_off(void);
|
|
|
|
|
|
|
|
|
|
void app_tm1617_auto_loop(void);
|
|
|
|
|
|
|
|
|
|
uint8_t app_tm1617_scan_key(void);
|
|
|
|
|
|
2026-09-14 15:05:17 +08:00
|
|
|
/* RTT/test: bypass physical scan and inject a key event directly.
|
|
|
|
|
* key: 0=KEY_MAIN_D 1=KEY_MAIN_C 2=KEY_MAIN_B 3=KEY_MAIN_A 4+=release(KEY_NULL) */
|
|
|
|
|
void app_tm1617_inject_key(uint8_t key);
|
|
|
|
|
|
2026-08-26 07:26:58 +08:00
|
|
|
#endif /* APP_TM1617_H */
|