Motion controll board test program

Dependencies:   Motor mbed eeprom

Committer:
ParinyaT
Date:
Tue Dec 22 15:02:04 2015 +0000
Revision:
0:be4a5e3ebb41
Child:
1:5a5abae3748b
BearLab Motion board

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ParinyaT 0:be4a5e3ebb41 1 #include "mbed.h"
ParinyaT 0:be4a5e3ebb41 2 #include "Motor.h"
ParinyaT 0:be4a5e3ebb41 3 #include "pinconfig.h"
ParinyaT 0:be4a5e3ebb41 4
ParinyaT 0:be4a5e3ebb41 5 int main()
ParinyaT 0:be4a5e3ebb41 6 {
ParinyaT 0:be4a5e3ebb41 7 Motor Upper(PWM_LU,A_LU,B_LU );
ParinyaT 0:be4a5e3ebb41 8 Upper.period(0.001);
ParinyaT 0:be4a5e3ebb41 9 while(1)
ParinyaT 0:be4a5e3ebb41 10 {
ParinyaT 0:be4a5e3ebb41 11 Upper.speed(-1);
ParinyaT 0:be4a5e3ebb41 12 }
ParinyaT 0:be4a5e3ebb41 13
ParinyaT 0:be4a5e3ebb41 14 }