ff

Dependencies:   Motor Servo mbed

Files at this revision

API Documentation at this revision

Comitter:
caleblegis
Date:
Thu Apr 23 23:44:06 2015 +0000
Commit message:
hh

Changed in this revision

Motor.lib Show annotated file Show diff for this revision Revisions of this file
Servo.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 7ad01343cc80 Motor.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Motor.lib	Thu Apr 23 23:44:06 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/Motor/#f265e441bcd9
diff -r 000000000000 -r 7ad01343cc80 Servo.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Servo.lib	Thu Apr 23 23:44:06 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/jdenkers/code/Servo/#352133517ccc
diff -r 000000000000 -r 7ad01343cc80 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 23 23:44:06 2015 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "Motor.h"
+Motor R(p24, p25, p26);
+Motor L(p21, p22, p23);
+
+int main()
+{
+    while(1) {
+        if (sensor= blue)
+        {
+        R.speed(0.5);
+        L.speed(0.5);
+        }
+        if (sensor=green)
+        {
+            L.speed(0.2);
+            R.speed(0.0);
+        }
+        if (sensor=red) {
+            L.speed(0.0);
+            R.speed(0.2);}
+            }}
+        
+        
+
diff -r 000000000000 -r 7ad01343cc80 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 23 23:44:06 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file