![](/media/cache/profiles/bea086e2b8b1ae2295818dd84714a128.jpg.50x50_q85.jpg)
m
main.cpp
- Committer:
- chris
- Date:
- 2011-05-13
- Revision:
- 7:d0689e8f23bf
- Parent:
- 6:602fc2239837
- Child:
- 8:90a44152e1f0
File content as of revision 7:d0689e8f23bf:
#include "mbed.h" #include "m3pi.h" m3pi m3pi; int main() { m3pi.locate(0,1); m3pi.printf("LO World"); wait (2.0); m3pi.forward(0.5); // Forward half speed wait (0.5); // wait half a second m3pi.left(0.5); // Turn left at half speed wait (0.5); // wait half a second m3pi.backward(0.5);// Backward at half speed wait (0.5); // wait half a second m3pi.right(0.5); // Turn right at half speed wait (0.5); // wait half a second m3pi.stop(); }