2023-12-15 21:42:43 +08:00
|
|
|
#ifndef _BY_PT_BUTTON_H__
|
|
|
|
|
#define _BY_PT_BUTTON_H__
|
2023-12-13 21:54:20 +08:00
|
|
|
|
|
|
|
|
#include "stdio.h"
|
|
|
|
|
#include "ch32v30x.h"
|
|
|
|
|
#define POTATE_BUTTOM_PRESS 1
|
|
|
|
|
#define POTATE_BUTTOM_FOREWARD 2
|
|
|
|
|
#define POTATE_BUTTOM_BACKWARD 3
|
|
|
|
|
extern uint8_t potate_button;
|
|
|
|
|
|
2023-12-22 15:24:39 +08:00
|
|
|
|
2023-12-13 21:54:20 +08:00
|
|
|
extern void by_exit_init(void);
|
|
|
|
|
extern void by_gpio_init(void);
|
2023-12-22 15:24:39 +08:00
|
|
|
extern uint8_t by_get_statu(void);
|
2023-12-15 21:42:43 +08:00
|
|
|
extern void by_ips_show(void);
|
2023-12-22 15:24:39 +08:00
|
|
|
|
2023-12-13 21:54:20 +08:00
|
|
|
#endif
|