Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of _B14Test7 by
Revision 1:518bc17bc156, committed 2015-01-25
- Comitter:
- Enenkel
- Date:
- Sun Jan 25 17:29:51 2015 +0000
- Parent:
- 0:eaf9c37db4a3
- Commit message:
- LDR-TEST
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file | 
diff -r eaf9c37db4a3 -r 518bc17bc156 main.cpp
--- a/main.cpp	Fri Nov 14 14:01:48 2014 +0000
+++ b/main.cpp	Sun Jan 25 17:29:51 2015 +0000
@@ -1,18 +1,19 @@
 /***********************************
-name:   BERTL_2014_TEST i2C Schalter und LEDs
-author: Gottfried Enenkel   HTL BULME
+name:   BERTL_2014_TEST LDR Schaltet LEDs
+author: Gottfried Enenkel       HTL BULME
 email:  ene@bulme.at
 description:
  je dünkler desto mehr LED leuchten 
- ****************************************/
+****************************************/
+
  // **********  Definitionen *****************
 #include "mbed.h" 
  
-DigitalOut ledD10(LED1);       // LED D10
-DigitalOut ledD11(LED2);
-DigitalOut ledD12(LED3);
-DigitalOut ledD13(LED4); 
-AnalogIn LDR(p20);             // LDR
+DigitalOut ledD10(P1_8);     // LED D10
+DigitalOut ledD11(P1_9);
+DigitalOut ledD12(P1_10);
+DigitalOut ledD13(P1_11); 
+AnalogIn LDR(P0_22);         // LDR
 
 // ************* Hauptprogramm ******************
 int main() 
@@ -41,29 +42,4 @@
                          
     }    
 }
-// ****************   ENDE    ************************
-
-
-
-   /*
-#include "mbed.h"
-// ************ DEKLARATIONEN **************
-DigitalOut LED_D10(P1_8);    // Alle Blauen LED gehen auf einen Anschluß
-DigitalOut LED_D13(P1_10);   // P1..Port1 _28 Anschluß 28     
-
-DigitalIn LDR(P0_22);        // LRD Sensor        
-DigitalIn SensorR(P1_13);    // Sensor Rechts 
-
-// ************  HAUPT PROGRAMM **************
-int main() {
-       
-    while(1) {
-        LED_D10 = SensorL;  //
-        LED_D13 = SensorR;
-    }
- }
- 
- // *****************  ENDE  ********************
- 
-    */
-    
\ No newline at end of file
+// ****************   ENDE    ************************
\ No newline at end of file
    