B17 L02

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Leonard_Haghofer
Date:
Tue May 02 08:00:08 2017 +0000
Commit message:
B17 l2

Changed in this revision

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 8056e5ac6cbc main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 02 08:00:08 2017 +0000
@@ -0,0 +1,38 @@
+//#include "mbed.h" -> med.h header includen
+
+/*
+~Lektion 02 - Bertl 2017
+
+Lauflicht 4 LEDs 
+D10 - warte 1/2sek - D11 - warte 1/2sek - D12 - warte 1/2sek - D13 - warte 1/2sek 
+
+-> Pins definieren
+DigitalOut D10(*)   * Auf dem Schaltplan LEDs aussuchen.
+DigitalOut D11(*)
+DigitalOut D12(*)
+DigitalOut D13(*)
+
+-> Programm 
+int main() {
+    D10 = D11 = D12 = D13 = 1; *Alle LEDs AUSschalten -> invertierte Pins 1 = 0 - 0 = 1. 
+    while(1) 
+    {
+        D10 = 0;
+        wait(1.0); *Zeit in Sekunden
+        D10 = 1;
+        
+        D11 = 0; 
+        wait(1.0);
+        D11 = 1;
+        
+        D12 = 0;
+        wait(1.0);
+        D12 = 1;
+        
+        D13 = 0;
+        wait(1.0);
+        D13 = 1;
+    
+    }
+}
+*/
\ No newline at end of file
diff -r 000000000000 -r 8056e5ac6cbc mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue May 02 08:00:08 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/794e51388b66
\ No newline at end of file