Georg Lerm
/
mbed-os-example-mbed5-blinky
os5
main.cpp
- Committer:
- Georg
- Date:
- 2020-09-14
- Revision:
- 0:ca77b05e6a8e
File content as of revision 0:ca77b05e6a8e:
#include "mbed.h" #include "m3pi.h" m3pi m3pi; int main() { m3pi.locate(0,1); m3pi.printf("LO World"); wait (2.0); m3pi.forward(0.1); // Forward half speed wait (0.5); // wait half a second m3pi.left(0.1); // Turn left at half speed wait (0.5); // wait half a second m3pi.backward(0.1);// Backward at half speed wait (0.5); // wait half a second m3pi.right(0.1); // Turn right at half speed wait (0.5); // wait half a second m3pi.stop(); }