Following the line

Dependencies:   mbed

Fork of BERTL14_LINESENSOR by Wolfgang Raimann

Revision:
0:acfdc7c80165
Child:
1:738be9ff3851
diff -r 000000000000 -r acfdc7c80165 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 20 06:59:40 2014 +0000
@@ -0,0 +1,23 @@
+/***********************************
+name:   BERTL14_LINESENSOR
+author: Wolfgang Raimann
+email:  rai@bulme.at
+description:
+    Die vier Sensoren auf der Unterseite werden auf die LEDs D10-D13 durchgeschaltet
+***********************************/
+
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+
+
+BusIn linesensor(p18, p16, p19, p17);
+
+BusOut leds(LED1, LED2, LED3, LED4);
+
+
+int main() {
+    while(1) {
+        leds = linesensor;
+    }
+}