![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
RemoLab Blinky Experiment
Revision 0:ec8e913ff5bc, committed 2016-02-02
- Comitter:
- EduRemo
- Date:
- Tue Feb 02 12:35:04 2016 +0000
- Commit message:
- Initial
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /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); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Feb 02 12:35:04 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11 \ No newline at end of file