Lehrer Busch
/
040_LED_SOS_AA
040_LED_SOS_AA
Diff: main.cpp
- Revision:
- 0:785952ab6af1
- Child:
- 1:8e82cd0cc380
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 31 16:02:49 2022 +0000 @@ -0,0 +1,53 @@ +/* mbed BuschA, 40_LED_SOS + */ + +#include "mbed.h" + +//Initialisiere Ausgangspin und Variable +DigitalOut Boardled(LED1); + +int main() +{ + + while (true) + { + Boardled = 1; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 1; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 1; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(500); //Sleep = Warten... + + Boardled = 1; + thread_sleep_for(1500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(1500); //Sleep = Warten... + Boardled = 1; + thread_sleep_for(1500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(1500); //Sleep = Warten... + Boardled = 1; + thread_sleep_for(1500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(1500); //Sleep = Warten... + + Boardled = 1; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 1; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 1; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(500); //Sleep = Warten... + } +} \ No newline at end of file