Lehrer Busch
/
040_LED_SOS_AA
040_LED_SOS_AA
main.cpp@0:785952ab6af1, 2022-01-31 (annotated)
- Committer:
- itbusch
- Date:
- Mon Jan 31 16:02:49 2022 +0000
- Revision:
- 0:785952ab6af1
- Child:
- 1:8e82cd0cc380
040_LED_SOS
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
itbusch | 0:785952ab6af1 | 1 | /* mbed BuschA, 40_LED_SOS |
itbusch | 0:785952ab6af1 | 2 | */ |
itbusch | 0:785952ab6af1 | 3 | |
itbusch | 0:785952ab6af1 | 4 | #include "mbed.h" |
itbusch | 0:785952ab6af1 | 5 | |
itbusch | 0:785952ab6af1 | 6 | //Initialisiere Ausgangspin und Variable |
itbusch | 0:785952ab6af1 | 7 | DigitalOut Boardled(LED1); |
itbusch | 0:785952ab6af1 | 8 | |
itbusch | 0:785952ab6af1 | 9 | int main() |
itbusch | 0:785952ab6af1 | 10 | { |
itbusch | 0:785952ab6af1 | 11 | |
itbusch | 0:785952ab6af1 | 12 | while (true) |
itbusch | 0:785952ab6af1 | 13 | { |
itbusch | 0:785952ab6af1 | 14 | Boardled = 1; |
itbusch | 0:785952ab6af1 | 15 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 16 | Boardled = 0; |
itbusch | 0:785952ab6af1 | 17 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 18 | Boardled = 1; |
itbusch | 0:785952ab6af1 | 19 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 20 | Boardled = 0; |
itbusch | 0:785952ab6af1 | 21 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 22 | Boardled = 1; |
itbusch | 0:785952ab6af1 | 23 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 24 | Boardled = 0; |
itbusch | 0:785952ab6af1 | 25 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 26 | |
itbusch | 0:785952ab6af1 | 27 | Boardled = 1; |
itbusch | 0:785952ab6af1 | 28 | thread_sleep_for(1500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 29 | Boardled = 0; |
itbusch | 0:785952ab6af1 | 30 | thread_sleep_for(1500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 31 | Boardled = 1; |
itbusch | 0:785952ab6af1 | 32 | thread_sleep_for(1500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 33 | Boardled = 0; |
itbusch | 0:785952ab6af1 | 34 | thread_sleep_for(1500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 35 | Boardled = 1; |
itbusch | 0:785952ab6af1 | 36 | thread_sleep_for(1500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 37 | Boardled = 0; |
itbusch | 0:785952ab6af1 | 38 | thread_sleep_for(1500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 39 | |
itbusch | 0:785952ab6af1 | 40 | Boardled = 1; |
itbusch | 0:785952ab6af1 | 41 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 42 | Boardled = 0; |
itbusch | 0:785952ab6af1 | 43 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 44 | Boardled = 1; |
itbusch | 0:785952ab6af1 | 45 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 46 | Boardled = 0; |
itbusch | 0:785952ab6af1 | 47 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 48 | Boardled = 1; |
itbusch | 0:785952ab6af1 | 49 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 50 | Boardled = 0; |
itbusch | 0:785952ab6af1 | 51 | thread_sleep_for(500); //Sleep = Warten... |
itbusch | 0:785952ab6af1 | 52 | } |
itbusch | 0:785952ab6af1 | 53 | } |