This drive is working well with "LPD3806-600BM-G5-24G", and have Simple program, external pull-up resistance is required
注意:需要外置上拉电阻。
main.cpp
- Committer:
- Yifan_Du
- Date:
- 2019-02-02
- Revision:
- 0:b2ffb830539c
- Child:
- 1:4d205546ec69
File content as of revision 0:b2ffb830539c:
#include "mbed.h" #include "Rotary_Encoder.h" Rotary_Encoder Encoder(PA_0, PA_1); int main(void) { while(1) { printf("Direction: %s\r\n", Encoder.Calculate_Direction()); printf("\r\n"); wait(0.2); } }