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 _B14_Lektion02c by
Diff: main.cpp
- Revision:
- 0:d1b86ac9a8cd
- Child:
- 1:1b6e8646461b
diff -r 000000000000 -r d1b86ac9a8cd main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Nov 13 18:19:10 2014 +0000
@@ -0,0 +1,31 @@
+/***********************************
+name: BERTL_2014_TEST
+author: Gottfried Enenkel HTL BULME
+email: ene@bulme.at
+description:
+ LEDS D10 - D13 blinken im sec Takt
+
+***********************************/
+#include "mbed.h"
+// ******* Definitionen ********
+DigitalOut ledD10(LED1); //dem uP - Ausgang LED1 den Namen ledD10 zuweisen
+DigitalOut ledD11(LED2);
+DigitalOut ledD12(LED3);
+DigitalOut ledD13(LED4);
+
+// ******* Hauptroutine ********
+int main() { // Start Hauptprogramm
+
+ while(1) { // Anfang der Schleife (ohne Abbruch)
+ ledD10 =1; // LED D10 einschalten
+ ledD11 = ledD12 = ledD13 =1;
+ wait (1); // warte 1 Sekunde
+ ledD10=0; // LED D10 ausschalten
+ ledD11 = ledD12 = ledD13 =0;
+ wait (1); // warte 1 Sekunde
+ } // Springe zum Anfang der Schleife
+} // Ende Hauptprogramm
+// ******* Ende *********
+
+
+
