My first Blinky-Program

Dependencies:   mbed

5ABELI Testprogramm

Weiter gehts!

main.cpp

Committer:
bulmecisco
Date:
2017-12-04
Revision:
0:5629bcae0c89

File content as of revision 0:5629bcae0c89:

#include "mbed.h"

DigitalOut myled(LED1);
DigitalOut myled2(LED2, 1);

int main() {
    while(1) {
        myled.write(1);
        myled2 = !myled2;
        wait(0.5);
        myled = 0;
        wait(0.5);
    }
}