LED hello world

Dependencies:   mbed

Fork of HelloWorld by Simon Ford

main.cpp

Committer:
SyahmiShah
Date:
2017-09-27
Revision:
3:333d22bc52e9
Parent:
2:0ba1a3a3363c

File content as of revision 3:333d22bc52e9:

#include "mbed.h"

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

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