020_LED_blink_wait_oszi_AA

main.cpp

Committer:
itbusch
Date:
2022-02-24
Revision:
2:748b731a6136
Parent:
1:d4eec4fcc366

File content as of revision 2:748b731a6136:

/* mbed BuschA */

#include "mbed.h"
#include "Warten.h"

//Initialisiere Ausgangspin und Variable
DigitalOut Boardled(LED1);
DigitalOut Oszi(D3);                //Oszi-Pin zur Zeitmessung

int main()                          
{
    while (true) 
    {
        Boardled = 1;
        Oszi = 1;                   //Oszi-Hilfs-Bit = HIGH
        Warten();                   //UP-Aufruf: Warten
        Boardled = 0;   
        Oszi = 0;                   //Oszi-Hilfs-Bit = LOW
        Warten();                   //UP-Aufruf: Warten
    }
}