新增了电机相关功能函数 修改旋钮的接口
This commit is contained in:
15
app/by_pt_button.h
Normal file
15
app/by_pt_button.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef _BY_PT_BUTTON_H__
|
||||
#define _BY_PT_BUTTON_H__
|
||||
|
||||
#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;
|
||||
|
||||
extern void by_exit_init(void);
|
||||
extern void by_gpio_init(void);
|
||||
extern uint8_t by_get_pb_statu(void);
|
||||
extern void by_ips_show(void);
|
||||
#endif
|
||||
Reference in New Issue
Block a user