Lehrer Busch
/
060_LED_SOS_UP_Strukturen_CableSwitch_AA
060_LED_SOS_UP_Strukturen_CableSwitch_AA
main.cpp@1:4edbb4d59a34, 2022-02-24 (annotated)
- Committer:
- itbusch
- Date:
- Thu Feb 24 06:35:24 2022 +0000
- Revision:
- 1:4edbb4d59a34
- Parent:
- 0:47be8595eabc
060_LED_SOS_UP_Strukturen_CableSwitch_AA
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
itbusch | 0:47be8595eabc | 1 | /* mbed BuschA, 60_LED_SOS */ |
itbusch | 0:47be8595eabc | 2 | #include "mbed.h" |
itbusch | 0:47be8595eabc | 3 | #include "UP_SOS.h" |
itbusch | 0:47be8595eabc | 4 | //Initialisiere Ausgangspin und Variable |
itbusch | 0:47be8595eabc | 5 | DigitalIn CableSwitch(D2); //PullUp auf Board, PA_10 |
itbusch | 0:47be8595eabc | 6 | |
itbusch | 0:47be8595eabc | 7 | int main() |
itbusch | 0:47be8595eabc | 8 | { |
itbusch | 0:47be8595eabc | 9 | |
itbusch | 0:47be8595eabc | 10 | while (true) |
itbusch | 0:47be8595eabc | 11 | { |
itbusch | 1:4edbb4d59a34 | 12 | //Ergänzen Sie |
itbusch | 0:47be8595eabc | 13 | UP_SOS_kurz(); //Funktionsaufruf... |
itbusch | 0:47be8595eabc | 14 | UP_SOS_lang(); |
itbusch | 0:47be8595eabc | 15 | UP_SOS_kurz(); |
itbusch | 0:47be8595eabc | 16 | thread_sleep_for(2000); //Sleep = Warten... |
itbusch | 1:4edbb4d59a34 | 17 | |
itbusch | 0:47be8595eabc | 18 | } |
itbusch | 0:47be8595eabc | 19 | } |