070_LED_SOS_UP_Strukturen_UserButton

main.cpp

Committer:
itbusch
Date:
2022-02-04
Revision:
1:5bb0b616cdaa
Parent:
0:47be8595eabc

File content as of revision 1:5bb0b616cdaa:

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

int main()
{

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