Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- chris
- Date:
- 2010-11-10
- Revision:
- 6:602fc2239837
- Parent:
- 5:7619250a5b1d
- Child:
- 7:d0689e8f23bf
File content as of revision 6:602fc2239837:
#include "mbed.h"
#include "m3pi.h"
m3pi m3pi(p23,p9,p10);
int main() {
m3pi.locate(0,1);
m3pi.printf("LO World");
wait (2.0);
m3pi.forward(0.5); // Forward half speed
wait (0.5); // For half a second
m3pi.left(0.5);
wait (0.5);
m3pi.backward(0.5);
wait (0.5);
m3pi.right(0.5);
wait (0.5);
m3pi.stop();
}