23 lines
568 B
C
23 lines
568 B
C
#ifndef _BY_RT_BUTTON_H__
|
|
#define _BY_RT_BUTTON_H__
|
|
|
|
#include "stdio.h"
|
|
#include "ch32v30x.h"
|
|
// #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;
|
|
|
|
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);
|
|
|
|
#endif |