![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
k
Fork of m3pi_HelloWorld by
Diff: main.cpp
- Revision:
- 0:93bba564574a
- Child:
- 1:05bdd0697e72
diff -r 000000000000 -r 93bba564574a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Oct 29 13:32:33 2010 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "m3pi.h" + +m3pi pi(p8,p9,p10); + +int main() { + + wait(0.5); + + pi.forward(0.5); + wait (0.5); + pi.left(0.5); + wait (0.5); + pi.backward(0.5); + wait (0.5); + pi.right(0.5); + wait (0.5); + + pi.stop(); + +} \ No newline at end of file