feat: 蜂鸣器和旋钮适配

This commit is contained in:
bmy
2024-02-07 10:24:11 +08:00
parent 845ab06586
commit 5f29a9eca2
9 changed files with 78 additions and 120 deletions

View File

@@ -8,6 +8,7 @@
#define LONG_PRESS_THRESHOLD_TICK (LONG_PRESS_THRESHOLD_MS * 18000ULL)
typedef enum rotate_button_event {
rotate_button_none = 0,
rotate_button_press_short = 1,
rotate_button_press_long = 2,
rotate_button_forward = 3,
@@ -16,9 +17,7 @@ typedef enum rotate_button_event {
extern uint8_t rotate_button;
extern void by_exit_init(void);
extern void by_gpio_init(void);
extern uint8_t by_get_rb_status(void);
extern void by_ips_show(void);
extern void by_rb_init(void);
#endif