LINE SENSOR Test
Dependencies: mbed
Revision 1:990f1662c0d1, committed 2015-01-25
- Comitter:
- Enenkel
- Date:
- Sun Jan 25 17:28:16 2015 +0000
- Parent:
- 0:f94a04d3cabd
- Commit message:
- Line Sensor Test
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f94a04d3cabd -r 990f1662c0d1 main.cpp --- a/main.cpp Thu Nov 13 18:20:22 2014 +0000 +++ b/main.cpp Sun Jan 25 17:28:16 2015 +0000 @@ -1,23 +1,24 @@ /*********************************** -name: BERTL_2014_TEST +name: BERTL_2014_TEST Line Sensor Test author: Gottfried Enenkel HTL BULME email: ene@bulme.at description: Die 4 LINE Sensoren werden direkt - den LED D10 - D13 zugeordnet + den LED D10 - D13 zugeordnet + + Durch abdecken der Sensoren mit dem Finger + leuchten die jeweils zugeordneten LED's ***********************************/ #include "mbed.h" // ************ DEKLARATIONEN ************** -BusIn linesensor(p18, p16, p19, p17); //Einlesen der Linesensoren -BusOut leds(LED1, LED2, LED3, LED4); //LEDS als Bus definieren +BusIn linesensor(P0_14, P0_12, P0_16, P0_13); //Einlesen der Linesensoren +BusOut leds(P1_8, P1_9, P1_10, P1_11); //LEDS als Bus definieren //************* HAUPTPROGRAMM ************* int main() { - while(1) { - leds = linesensor; //die line Sensoren den LEDs zuordnen + leds = linesensor; //die line Sensoren den LEDs zuordnen } - } //***************** ENDE *******************