LINE SENSOR TEST

Dependencies:   mbed

Fork of _B14Test4 by BULME_BERTL14

Revision:
0:f94a04d3cabd
Child:
1:990f1662c0d1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 13 18:20:22 2014 +0000
@@ -0,0 +1,23 @@
+/***********************************
+name:   BERTL_2014_TEST
+author: Gottfried Enenkel   HTL BULME
+email:  ene@bulme.at
+description:
+    Die 4 LINE Sensoren werden direkt
+    den LED D10 - D13 zugeordnet    
+***********************************/
+#include "mbed.h"
+// ************ DEKLARATIONEN **************
+BusIn linesensor(p18, p16, p19, p17);  //Einlesen der Linesensoren 
+BusOut leds(LED1, LED2, LED3, LED4);   //LEDS als Bus definieren 
+
+//*************  HAUPTPROGRAMM *************
+int main() {
+ 
+    while(1) {
+        leds = linesensor;            //die line Sensoren den LEDs zuordnen
+     }
+
+}
+//***************** ENDE *******************
+