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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:7116cced0ada
- Child:
- 1:414699543271
diff -r 000000000000 -r 7116cced0ada main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Mar 26 01:16:35 2014 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "m3pi.h"
+
+m3pi m3pi;
+
+int main() {
+
+ m3pi.locate(0,1);
+ m3pi.printf("Whatever");
+
+ wait(1.0); //wait 2 seconds
+
+ m3pi.left_motor(-0.51); //foward at full speed
+ m3pi.right_motor(-0.35);
+ wait(5.0);
+ m3pi.stop();
+ wait(0.5);
+ m3pi.left_motor(0.65); //foward at full speed
+ m3pi.right_motor(0.28);
+ wait(5.0); //wait one second
+
+
+ m3pi.stop();
+
+}
\ No newline at end of file