Brayan Sebastián Cuervo Lancheros
/
motorQEI
qei
main.cpp
- Committer:
- 20172573063
- Date:
- 2020-07-01
- Revision:
- 0:bbe5f6306f45
File content as of revision 0:bbe5f6306f45:
#include "mbed.h" #include "QEI.h" Serial pc(USBTX, USBRX); DigitalOut gpo(D0); DigitalOut led(LED_RED); QEI wheel (A0, PTD5, NC, 624); int main() { while(1){ wait(0.1); pc.printf("Pulses is: %i\n", wheel.getPulses()); } }