MiaoUI/HARDWARE/Encoder/rotary_encoder.h

12 lines
223 B
C
Raw Normal View History

2023-06-30 04:50:02 +00:00
#ifndef _rotary_encoder_h
#define _rotary_encoder_h
#define CLK GPIO_Pin_7
#define DT GPIO_Pin_6
#define SW GPIO_Pin_8
#define Encoder_Port GPIOB
void rotary_encoder_Init(void);
int16_t GETCounter_Encoder(void);
#endif