mbed blinker code

Dependencies:   mbed

main.cpp

Committer:
jmoreno10
Date:
2018-11-06
Revision:
1:60c416914fc0
Parent:
0:97226e931339
Child:
2:9610d7afd4e3

File content as of revision 1:60c416914fc0:

// Version 2

#include "mbed.h"

DigitalOut myled(LED1);

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