mbed library and test Hello World program
Dependencies: mbed
Fork of m3pi by
main.cpp
- Committer:
- chrisell512
- Date:
- 2014-03-21
- Revision:
- 9:c7a64b3c1ad5
File content as of revision 9:c7a64b3c1ad5:
#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(); }