LED01

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
fritzhausmann
Date:
Thu Apr 23 12:07:15 2015 +0000
Commit message:
LED01

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 50a4b712c92a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 23 12:07:15 2015 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"       // Klassen und Pinname
+
+DigitalOut myled(LED1); // Im Speicher das Objekt myled erzeugen (vom Typ DigitalOut)
+                        // myLed mit Pin LED1 verbinden
+
+int main() {            // Vom Compiler als Programmstart festgelegt
+    while(1) {          // Endlosschleife (Bedingung ist erfüllt, falls
+        myled = 1;      // LED einschalten
+        wait(0.2);      // Warte 0.2 Sekunden
+        myled = 0;      // LED ausschalten
+        wait(0.2);
+    }
+}
+
+// Bertl_LED02
+// LED1 und LED2 abwechselnd mit LED3 und LED4 alle 0.5 Sekunden einschalten
\ No newline at end of file
diff -r 000000000000 -r 50a4b712c92a mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 23 12:07:15 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7e07b6fb45cf
\ No newline at end of file