Devan Tormey
/
Move_Around
moves around
Fork of m3pi_HelloWorld by
main.cpp
- Committer:
- devantormey
- Date:
- 2018-02-26
- Revision:
- 8:379aed8af55f
- Parent:
- 7:d0689e8f23bf
File content as of revision 8:379aed8af55f:
#include "mbed.h" #include "m3pi.h" m3pi m3pi; int main() { m3pi.locate(0,1); m3pi.printf("Sup DSP"); wait (2.0); m3pi.forward(0.25); // Forward half speed wait (0.5); // wait half a second m3pi.right(0.25); // Turn left at half speed wait (0.25); // wait half a second m3pi.forward(0.5);// Backward at half speed wait (0.5); // wait half a second m3pi.right(0.25); // Turn right at half speed wait (0.25); // wait half a second m3pi.forward(0.5);// Backward at half speed wait (0.5); m3pi.right(0.25); // Turn left at half speed wait (0.25); m3pi.forward(0.5);// Backward at half speed wait (0.5); m3pi.right(0.25); // Turn left at half speed wait (0.25); m3pi.stop(); }