ZSL Busch
/
050_LED_SOS_UP_Strukturen
050_LED_SOS_UP_Strukturen
Revision 0:703b6688ff90, committed 2022-01-31
- Comitter:
- itbusch
- Date:
- Mon Jan 31 16:58:11 2022 +0000
- Commit message:
- 050_LED_SOS_UP_Strukturen
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UP_SOS.h Mon Jan 31 16:58:11 2022 +0000 @@ -0,0 +1,24 @@ +DigitalOut Boardled(LED1); + +void UP_SOS_kurz (void) +{ + for (int i=0; i<4; i++) + { + Boardled = 1; + thread_sleep_for(500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(500); //Sleep = Warten... + } + } + + void UP_SOS_lang (void) + { + for (int i=0; i<4; i++) + { + Boardled = 1; + thread_sleep_for(1500); //Sleep = Warten... + Boardled = 0; + thread_sleep_for(1500); //Sleep = Warten... + } + } + \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 31 16:58:11 2022 +0000 @@ -0,0 +1,16 @@ +/* mbed BuschA, 60_LED_SOS */ +#include "mbed.h" +#include "UP_SOS.h" +//Initialisiere Ausgangspin und Variable + +int main() +{ + + while (true) + { + UP_SOS_kurz(); //Funktionsaufruf... + UP_SOS_lang(); + UP_SOS_kurz(); + thread_sleep_for(2000); //Sleep = Warten... + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Mon Jan 31 16:58:11 2022 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#b1796dedeb8accde1cbaecf136fab96895e23d81
Binary file resources/official_armmbed_example_badge.png has changed