H BRIDGE PARA MOTORES DC KL64Z

Dependencies:   Motor mbed Servo

Files at this revision

API Documentation at this revision

Comitter:
mderrant
Date:
Fri Jul 18 18:05:07 2014 +0000
Child:
1:6ee374b19aaf
Commit message:
H-BRIDGE MOTOR PARA KL46Z

Changed in this revision

Motor.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/Motor.lib	Fri Jul 18 18:05:07 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/Motor/#f265e441bcd9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jul 18 18:05:07 2014 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "Motor.h"
+
+Motor m(PTA1, PTA2, PTD3); // pwm, fwd, rev
+
+int main() {
+    for (float s= -1.0; s < 1.0 ; s += 0.01) {
+       m.speed(s); 
+       wait(0.02);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jul 18 18:05:07 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae
\ No newline at end of file