Dependencies:   Motor mbed

Files at this revision

API Documentation at this revision

Comitter:
chadlewellyn
Date:
Tue Oct 13 13:55:36 2015 +0000
Commit message:
Lab 3 part 1

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	Tue Oct 13 13:55:36 2015 +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	Tue Oct 13 13:55:36 2015 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "Motor.h"
+
+int main() {
+float x, i;
+Motor m(p25, p27, p28);
+
+
+
+for (i = -1.0; i <= 1.0; i+=.2)
+    {    
+    x = i;
+    m.speed(x);
+    getchar();
+}
+
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Oct 13 13:55:36 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68
\ No newline at end of file