Lehrer Busch
/
070_LED_SOS_UP_Strukturen_UserButton
070_LED_SOS_UP_Strukturen_UserButton
UP_SOS.h@1:5bb0b616cdaa, 2022-02-04 (annotated)
- Committer:
- itbusch
- Date:
- Fri Feb 04 08:50:19 2022 +0000
- Revision:
- 1:5bb0b616cdaa
- Parent:
- 0:47be8595eabc
070_LED_SOS_UP_Strukturen_UserButton
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
itbusch | 0:47be8595eabc | 1 | DigitalOut Boardled(LED1); |
itbusch | 0:47be8595eabc | 2 | |
itbusch | 0:47be8595eabc | 3 | void UP_SOS_kurz (void) |
itbusch | 0:47be8595eabc | 4 | { |
itbusch | 0:47be8595eabc | 5 | for (int i=0; i<4; i++) |
itbusch | 0:47be8595eabc | 6 | { |
itbusch | 0:47be8595eabc | 7 | Boardled = 1; |
itbusch | 0:47be8595eabc | 8 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:47be8595eabc | 9 | Boardled = 0; |
itbusch | 0:47be8595eabc | 10 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:47be8595eabc | 11 | } |
itbusch | 0:47be8595eabc | 12 | } |
itbusch | 0:47be8595eabc | 13 | |
itbusch | 0:47be8595eabc | 14 | void UP_SOS_lang (void) |
itbusch | 0:47be8595eabc | 15 | { |
itbusch | 0:47be8595eabc | 16 | for (int i=0; i<4; i++) |
itbusch | 0:47be8595eabc | 17 | { |
itbusch | 0:47be8595eabc | 18 | Boardled = 1; |
itbusch | 0:47be8595eabc | 19 | thread_sleep_for(1500); //Sleep = Warten... |
itbusch | 0:47be8595eabc | 20 | Boardled = 0; |
itbusch | 0:47be8595eabc | 21 | thread_sleep_for(1500); //Sleep = Warten... |
itbusch | 0:47be8595eabc | 22 | } |
itbusch | 0:47be8595eabc | 23 | } |
itbusch | 0:47be8595eabc | 24 |