モータードライバ確認用

Dependencies:   TA7291P mbed

Files at this revision

API Documentation at this revision

Comitter:
tomoya123
Date:
Fri Mar 17 08:39:40 2017 +0000
Commit message:
motor

Changed in this revision

TA7291P.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 c07686c99919 TA7291P.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TA7291P.lib	Fri Mar 17 08:39:40 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/takoyaki/code/TA7291P/#2abc17614090
diff -r 000000000000 -r c07686c99919 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Mar 17 08:39:40 2017 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "ta7291p.h"
+
+ta7291p motor1(p25,p24,p26);
+ta7291p motor2(p22,p21,p23);
+
+int main() {
+    while(1) {
+        motor1.rotf(1.0);
+        motor2.rotf(1.0);
+        wait(1.0);
+        motor1.rotstop();
+        motor2.rotstop();
+        wait(2.0);
+        motor1.rotb(1.0);
+        motor2.rotb(1.0);        
+    }
+}
diff -r 000000000000 -r c07686c99919 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Mar 17 08:39:40 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/6c34061e7c34
\ No newline at end of file