MicroMouse

Dependencies:   QEI mbed

Committer:
nathanielchu
Date:
Sat Oct 24 17:39:58 2015 +0000
Revision:
1:92eb1c9934ee
Parent:
0:524c6a42541a
commit 2 - testing encoders

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nathanielchu 0:524c6a42541a 1 #include "mbed.h"
nathanielchu 0:524c6a42541a 2 #include "QEI.h"
nathanielchu 0:524c6a42541a 3
nathanielchu 1:92eb1c9934ee 4 PwmOut LMOTORA(PB_5); // change these to D
nathanielchu 0:524c6a42541a 5 PwmOut LMOTORB(PB_10);
nathanielchu 0:524c6a42541a 6 PwmOut RMOTORA(PA_6);
nathanielchu 0:524c6a42541a 7 PwmOut RMOTORB(PB_8);
nathanielchu 1:92eb1c9934ee 8 QEI LENC (PC_1, PC_0, NC, 100); // are the encoder pins correct?