モータードライバ確認用

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
--- /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
--- /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);        
+    }
+}
--- /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