Lehrer Busch
/
020_LED_blink_wait_oszi_AA
020_LED_blink_wait_oszi_AA
main.cpp@0:05bee2dd672d, 2022-01-24 (annotated)
- Committer:
- itbusch
- Date:
- Mon Jan 24 07:37:38 2022 +0000
- Revision:
- 0:05bee2dd672d
- Child:
- 1:d4eec4fcc366
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
itbusch | 0:05bee2dd672d | 1 | /* mbed BuschA |
itbusch | 0:05bee2dd672d | 2 | */ |
itbusch | 0:05bee2dd672d | 3 | |
itbusch | 0:05bee2dd672d | 4 | #include "mbed.h" |
itbusch | 0:05bee2dd672d | 5 | #include "wait.h" |
itbusch | 0:05bee2dd672d | 6 | |
itbusch | 0:05bee2dd672d | 7 | //Initialisiere Ausgangspin und Variable |
itbusch | 0:05bee2dd672d | 8 | DigitalOut Boardled(LED1); |
itbusch | 0:05bee2dd672d | 9 | //DigitalOut Oszi(D3); |
itbusch | 0:05bee2dd672d | 10 | |
itbusch | 0:05bee2dd672d | 11 | int main() |
itbusch | 0:05bee2dd672d | 12 | { |
itbusch | 0:05bee2dd672d | 13 | while (true) |
itbusch | 0:05bee2dd672d | 14 | { |
itbusch | 0:05bee2dd672d | 15 | Boardled = 1; |
itbusch | 0:05bee2dd672d | 16 | //Oszi = 1; |
itbusch | 0:05bee2dd672d | 17 | wait(); //Warten |
itbusch | 0:05bee2dd672d | 18 | Boardled = 0; |
itbusch | 0:05bee2dd672d | 19 | //Oszi = 0; |
itbusch | 0:05bee2dd672d | 20 | wait(); |
itbusch | 0:05bee2dd672d | 21 | } |
itbusch | 0:05bee2dd672d | 22 | } |