ZSL Busch
/
040_LED_SOS
040_LED_SOS
Revision 0:785952ab6af1, committed 2022-01-31
- Comitter:
- itbusch
- Date:
- Mon Jan 31 16:02:49 2022 +0000
- Commit message:
- 040_LED_SOS
Changed in this revision
diff -r 000000000000 -r 785952ab6af1 main.cpp --- /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
diff -r 000000000000 -r 785952ab6af1 mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Mon Jan 31 16:02:49 2022 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#b1796dedeb8accde1cbaecf136fab96895e23d81
diff -r 000000000000 -r 785952ab6af1 resources/official_armmbed_example_badge.png Binary file resources/official_armmbed_example_badge.png has changed