Hello world program that just gets the m3pi moving

Dependencies:   mbed m3pi

Committer:
chris
Date:
Fri Oct 29 13:32:33 2010 +0000
Revision:
0:93bba564574a
Child:
1:05bdd0697e72
1.0 - Initial revision

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chris 0:93bba564574a 1 #include "mbed.h"
chris 0:93bba564574a 2 #include "m3pi.h"
chris 0:93bba564574a 3
chris 0:93bba564574a 4 m3pi pi(p8,p9,p10);
chris 0:93bba564574a 5
chris 0:93bba564574a 6 int main() {
chris 0:93bba564574a 7
chris 0:93bba564574a 8 wait(0.5);
chris 0:93bba564574a 9
chris 0:93bba564574a 10 pi.forward(0.5);
chris 0:93bba564574a 11 wait (0.5);
chris 0:93bba564574a 12 pi.left(0.5);
chris 0:93bba564574a 13 wait (0.5);
chris 0:93bba564574a 14 pi.backward(0.5);
chris 0:93bba564574a 15 wait (0.5);
chris 0:93bba564574a 16 pi.right(0.5);
chris 0:93bba564574a 17 wait (0.5);
chris 0:93bba564574a 18
chris 0:93bba564574a 19 pi.stop();
chris 0:93bba564574a 20
chris 0:93bba564574a 21 }