mm4_encoder_testing

Dependencies:   QEI mbed-src-AV

Committer:
jliu
Date:
Wed Nov 11 00:23:33 2015 +0000
Revision:
2:664717ad13cc
Parent:
0:c1b3cc00b091
k

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kelvincheng 0:c1b3cc00b091 1
kelvincheng 0:c1b3cc00b091 2 #include "mbed.h"
kelvincheng 0:c1b3cc00b091 3 #include "QEI.h"
kelvincheng 0:c1b3cc00b091 4
kelvincheng 0:c1b3cc00b091 5 PwmOut LMOTORA(PB_5); // change these to D
kelvincheng 0:c1b3cc00b091 6 PwmOut LMOTORB(PB_10);
kelvincheng 0:c1b3cc00b091 7 PwmOut RMOTORA(PB_8);
kelvincheng 0:c1b3cc00b091 8 PwmOut RMOTORB(PA_6);
kelvincheng 0:c1b3cc00b091 9 QEI LENC (PA_4, PA_0, NC, 100); // are the encoder pins correct?
kelvincheng 0:c1b3cc00b091 10 QEI RENC (PB_0, PA_1, NC, 100); // are the encoder pins correct?