040_LED_SOS_AA

main.cpp

Committer:
itbusch
Date:
2022-01-31
Revision:
0:785952ab6af1
Child:
1:8e82cd0cc380

File content as of revision 0:785952ab6af1:

/* mbed BuschA, 40_LED_SOS
 */ 

#include "mbed.h"

//Initialisiere Ausgangspin und Variable
DigitalOut Boardled(LED1);

int main()
{

    while (true) 
    {
        Boardled = 1;
        thread_sleep_for(500); //Sleep = Warten...
        Boardled = 0;
        thread_sleep_for(500); //Sleep = Warten...
        Boardled = 1;
        thread_sleep_for(500); //Sleep = Warten...
        Boardled = 0;
        thread_sleep_for(500); //Sleep = Warten...
        Boardled = 1;
        thread_sleep_for(500); //Sleep = Warten...
        Boardled = 0;
        thread_sleep_for(500); //Sleep = Warten...
        
        Boardled = 1;
        thread_sleep_for(1500); //Sleep = Warten...
        Boardled = 0;
        thread_sleep_for(1500); //Sleep = Warten...
        Boardled = 1;
        thread_sleep_for(1500); //Sleep = Warten...
        Boardled = 0;
        thread_sleep_for(1500); //Sleep = Warten...
        Boardled = 1;
        thread_sleep_for(1500); //Sleep = Warten...
        Boardled = 0;
        thread_sleep_for(1500); //Sleep = Warten...
        
        Boardled = 1;
        thread_sleep_for(500); //Sleep = Warten...
        Boardled = 0;
        thread_sleep_for(500); //Sleep = Warten...
        Boardled = 1;
        thread_sleep_for(500); //Sleep = Warten...
        Boardled = 0;
        thread_sleep_for(500); //Sleep = Warten...
        Boardled = 1;
        thread_sleep_for(500); //Sleep = Warten...
        Boardled = 0;
        thread_sleep_for(500); //Sleep = Warten...
    }
}