17 lines
365 B
C
17 lines
365 B
C
#ifndef _BY_RT_BUTTON_H__
|
|
#define _BY_RT_BUTTON_H__
|
|
|
|
#include "stdio.h"
|
|
#include "ch32v30x.h"
|
|
#define ROTATE_BUTTON_PRESS 1
|
|
#define ROTATE_BUTTON_FORWARD 2
|
|
#define ROTATE_BUTTON_BACKWARD 3
|
|
|
|
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 |