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.
Diff: main.cpp
- Revision:
- 0:6ac71784e91f
diff -r 000000000000 -r 6ac71784e91f main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Dec 04 14:15:12 2012 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "TB6612.h"
+
+DigitalOut myled(LED1);
+
+TB6612 left(p21,p12,p11);
+TB6612 right(p22,p14,p13);
+
+int main() {
+ while(1) {
+ left = 100;
+ right = 100;
+ wait(2.0);
+ left = -100;
+ right = -100;
+ wait(2.0);
+ }
+}