020_LED_blink_wait_oszi_AA

main.cpp

Committer:
itbusch
Date:
2022-01-31
Revision:
1:d4eec4fcc366
Parent:
0:05bee2dd672d

File content as of revision 1:d4eec4fcc366:

/* 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
    }
}