Brayan Sebastián Cuervo Lancheros
/
motorQEI
qei
Diff: main.cpp
- Revision:
- 0:bbe5f6306f45
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jul 01 00:57:09 2020 +0000 @@ -0,0 +1,17 @@ +#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()); + } + +} \ No newline at end of file