j

Fork of Motordriver by Christopher Hasler

Revision:
7:cd1cd85b0eb2
Parent:
6:a759f92efaac
--- a/motortest.cpp	Tue May 09 19:35:27 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-#include "motordriver.h"
-#include "motordriver.cpp"
-
-Motor A(D6, D5, D4, 1); // pwm, fwd, rev, can break
-Motor B(D3, D7, D2, 1); // pwm, fwd, rev, can break
-int main() {
-    for (float s=-1.0; s < 1.0 ; s += 0.01) {
-       A.speed(s);
-       B.speed(s);
-       wait(0.02);
-    }
-    A.stop();
-    B.stop();
-    wait(1);
-    A.coast();
-    B.coast();
-}
\ No newline at end of file