![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
RemoLab Blinky Experiment
Diff: main.cpp
- Revision:
- 0:ec8e913ff5bc
diff -r 000000000000 -r ec8e913ff5bc main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Feb 02 12:35:04 2016 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +DigitalOut myled(LED1); //red led + +int main() { + while(1) { + myled = 1; //make led OFF becuase led is active low + wait(0.5); // wait for half a second + myled = 0; // makes led ON + wait(0.5); + } +}