Lehrer Busch
/
060_LED_SOS_UP_Strukturen_CableSwitch_AA
060_LED_SOS_UP_Strukturen_CableSwitch_AA
Diff: main.cpp
- Revision:
- 0:47be8595eabc
- Child:
- 1:4edbb4d59a34
diff -r 000000000000 -r 47be8595eabc main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 31 16:58:37 2022 +0000 @@ -0,0 +1,20 @@ +/* mbed BuschA, 60_LED_SOS */ +#include "mbed.h" +#include "UP_SOS.h" +//Initialisiere Ausgangspin und Variable +DigitalIn CableSwitch(D2); //PullUp auf Board, PA_10 + +int main() +{ + + while (true) + { + if (CableSwitch == false) + { + UP_SOS_kurz(); //Funktionsaufruf... + UP_SOS_lang(); + UP_SOS_kurz(); + thread_sleep_for(2000); //Sleep = Warten... + } + } +} \ No newline at end of file