Dependencies: mbed
Revision 0:bea7e7ea6340, committed 2015-03-05
- Comitter:
- stueckler
- Date:
- Thu Mar 05 13:49:34 2015 +0000
- Commit message:
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 bea7e7ea6340 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Mar 05 13:49:34 2015 +0000 @@ -0,0 +1,17 @@ +#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 C Compiler als Programmstart festgelegt + while(1) { // Endlosschleife (Bedingung ist erfüllt, falls der Wert > 0 + myled = 1; // LED einschalten + wait(0.2); // Warte 0,2 Sekunden + myled = 0; // LED ausschalten + wait(0.2); + } +} + +// Projekt 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 bea7e7ea6340 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Mar 05 13:49:34 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7e07b6fb45cf \ No newline at end of file