feat: 添加旋转编码器按键长短按功能
This commit is contained in:
@@ -3,9 +3,15 @@
|
||||
|
||||
#include "stdio.h"
|
||||
#include "ch32v30x.h"
|
||||
#define ROTATE_BUTTON_PRESS 1
|
||||
#define ROTATE_BUTTON_FORWARD 2
|
||||
#define ROTATE_BUTTON_BACKWARD 3
|
||||
// #define rotate_button_press_short 1
|
||||
// #define rotate_button_forward 2
|
||||
// #define rotate_button_backward 3
|
||||
typedef enum rotate_button_event{
|
||||
rotate_button_press_short = 1,
|
||||
rotate_button_press_long = 2,
|
||||
rotate_button_forward = 3,
|
||||
rotate_button_backward = 4,
|
||||
}rotate_button_event;
|
||||
|
||||
extern uint8_t rotate_button;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user