K1Guitar/APP/app_tm1629.h

14 lines
645 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __APP_TM1629_H__
#define __APP_TM1629_H__
void app_tm1629_init(void);
void app_tm1629_reset_key_state(void); /* 软开机清扫描边沿,避免残留 key_last */
uint8_t app_tm1629_Scan_Key(void);
void app_tm1629_inject_key(uint8_t key); /* RTT/测试:绕过扫描直接注入 */
void app_tm1629_inject_hold(uint8_t key); /* RTT/测试:注入并保持(物理空扫不释放,chord key 0 解除) */
void app_tm1629_set_chord_led(uint8_t key_idx, LedColor_TypeDef color);
void app_tm1629_set_led(LedNum_TypeDef led, LedColor_TypeDef color);
void app_tm1629_all_off(void);
void app_tm1629_all_on(LedColor_TypeDef color);
#endif