070_LED_SOS_UP_Strukturen_UserButton_AA

main.cpp

Committer:
itbusch
Date:
2022-01-31
Revision:
0:47be8595eabc
Child:
1:5bb0b616cdaa

File content as of revision 0:47be8595eabc:

/* mbed BuschA, 60_LED_SOS  */ 
#include "mbed.h"
#include "UP_SOS.h"
//Initialisiere Ausgangspin und Variable
DigitalIn CableSwitch(D2); //PullUp auf Board, PA_10

int main()
{

    while (true) 
    {
        if (CableSwitch == false)
        {
            UP_SOS_kurz();                  //Funktionsaufruf...
            UP_SOS_lang();
            UP_SOS_kurz();
            thread_sleep_for(2000); //Sleep = Warten...
        }
    }
}