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
00001 #include "mbed.h" 00002 #include "m3pi.h" 00003 00004 m3pi m3pi; 00005 00006 int main() { 00007 00008 m3pi.locate(0,1); 00009 m3pi.printf("LO World"); 00010 00011 wait (2.0); 00012 00013 m3pi.forward(0.5); // Forward half speed 00014 wait (0.5); // wait half a second 00015 m3pi.left(0.5); // Turn left at half speed 00016 wait (0.5); // wait half a second 00017 m3pi.backward(0.5);// Backward at half speed 00018 wait (0.5); // wait half a second 00019 m3pi.right(0.5); // Turn right at half speed 00020 wait (0.5); // wait half a second 00021 00022 m3pi.stop(); 00023 }
Generated on Thu Jul 14 2022 01:52:48 by
1.7.2
Pololu m3pi Robot