part 1

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
diff -r 000000000000 -r fc97faa7f197 Motor.lib
--- /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
diff -r 000000000000 -r fc97faa7f197 main.cpp
--- /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();
+}
+
+
+}
diff -r 000000000000 -r fc97faa7f197 mbed.bld
--- /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