Signed-off-by: kevin <kevin@lmve.net>

This commit is contained in:
2022-04-21 17:18:30 +08:00
parent 13203a2a21
commit 0e275a0c18
21 changed files with 1112 additions and 979 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef ENCODER_H_
#define ENCODER_H_
#include "main.h"
typedef struct button
{
uint16_t code;
uint8_t lock;
uint32_t time;
uint16_t times;
GPIO_TypeDef *GPIOx;
uint16_t GPIO_Pin;
} button;
typedef struct
{
int code;
uint8_t move_flag:1;
} encoder;
void GEI_BUTTON_CODE(button *bt);
#endif /* ENCODER_H_ */