Lehrer Busch
/
020_LED_blink_wait_oszi_AA
020_LED_blink_wait_oszi_AA
main.cpp@1:d4eec4fcc366, 2022-01-31 (annotated)
- Committer:
- itbusch
- Date:
- Mon Jan 31 06:59:34 2022 +0000
- Revision:
- 1:d4eec4fcc366
- Parent:
- 0:05bee2dd672d
020_LED_blink_wait_oszi
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
itbusch | 1:d4eec4fcc366 | 1 | /* mbed BuschA */ |
itbusch | 0:05bee2dd672d | 2 | |
itbusch | 0:05bee2dd672d | 3 | #include "mbed.h" |
itbusch | 1:d4eec4fcc366 | 4 | #include "Warten.h" |
itbusch | 0:05bee2dd672d | 5 | |
itbusch | 0:05bee2dd672d | 6 | //Initialisiere Ausgangspin und Variable |
itbusch | 0:05bee2dd672d | 7 | DigitalOut Boardled(LED1); |
itbusch | 1:d4eec4fcc366 | 8 | DigitalOut Oszi(D3); //Oszi-Pin zur Zeitmessung |
itbusch | 0:05bee2dd672d | 9 | |
itbusch | 1:d4eec4fcc366 | 10 | int main() |
itbusch | 0:05bee2dd672d | 11 | { |
itbusch | 0:05bee2dd672d | 12 | while (true) |
itbusch | 0:05bee2dd672d | 13 | { |
itbusch | 0:05bee2dd672d | 14 | Boardled = 1; |
itbusch | 1:d4eec4fcc366 | 15 | Oszi = 1; //Oszi-Hilfs-Bit = HIGH |
itbusch | 1:d4eec4fcc366 | 16 | Warten(); //UP-Aufruf: Warten |
itbusch | 1:d4eec4fcc366 | 17 | Boardled = 0; |
itbusch | 1:d4eec4fcc366 | 18 | Oszi = 0; //Oszi-Hilfs-Bit = LOW |
itbusch | 1:d4eec4fcc366 | 19 | Warten(); //UP-Aufruf: Warten |
itbusch | 0:05bee2dd672d | 20 | } |
itbusch | 0:05bee2dd672d | 21 | } |