获取引脚信号

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2022-03-28 11:41:27 +08:00
parent e96e31d399
commit 1a4632417a
7 changed files with 231 additions and 11 deletions
+12
View File
@@ -11,6 +11,18 @@
#include "main.h"
#include "OLED.h"
#define KEY0 HAL_GPIO_ReadPin(tack_A_GPIO_Port, tack_A_Pin)
#define KEY1 HAL_GPIO_ReadPin(tack_B_GPIO_Port, tack_B_Pin)
#define SW_C HAL_GPIO_ReadPin(SW_C_GPIO_Port, SW_C_Pin)
struct morsecode
{
uint8_t len;
uint8_t code;
char letter;
};
void mymain();
#endif /* MY_H_ */