LED hello world

Dependencies:   mbed

main.cpp

Committer:
thezucks300
Date:
2018-10-19
Revision:
1:9a1cc07a6a83
Parent:
0:df8e650627f2

File content as of revision 1:9a1cc07a6a83:

#include "mbed.h"

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


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