020_LED_blink_wait_oszi_AA

Committer:
itbusch
Date:
Thu Feb 24 06:30:53 2022 +0000
Revision:
2:748b731a6136
Parent:
1:d4eec4fcc366
020_LED_blink_wait_oszi_AA

Who changed what in which revision?

UserRevisionLine numberNew 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 }