うおーるぼっとのモータテストプログラム

Dependencies:   TB6612FNG2 mbed

Files at this revision

API Documentation at this revision

Comitter:
jksoft
Date:
Tue Dec 04 14:15:12 2012 +0000
Commit message:
??????????????????????; ????????????????

Changed in this revision

TB6612FNG2.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 6ac71784e91f TB6612FNG2.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TB6612FNG2.lib	Tue Dec 04 14:15:12 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/jksoft/code/TB6612FNG2/#051a7ecff13e
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);
+    }
+}
diff -r 000000000000 -r 6ac71784e91f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Dec 04 14:15:12 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/b60934f96c0c
\ No newline at end of file