mm4_encoder_testing
Dependencies: QEI mbed-src-AV
PinDefinitions.h@2:664717ad13cc, 2015-11-11 (annotated)
- Committer:
- jliu
- Date:
- Wed Nov 11 00:23:33 2015 +0000
- Revision:
- 2:664717ad13cc
- Parent:
- 0:c1b3cc00b091
k
Who changed what in which revision?
User | Revision | Line number | New 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? |