![](/media/cache/profiles/6fb41c898918ad5a0df0e50f3790f057.50x50_q85.jpg)
A simple program to make flashing the blue Led on the board
Diff: main.cpp
- Revision:
- 0:086f27d7c7a0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 03 20:55:09 2013 +0000 @@ -0,0 +1,15 @@ +/*A simple program to make flashing the blue Led on the board*/ + +#include "mbed.h" + +DigitalOut BlueLed(PTB18); //LED_BLUE is conected to pin 18 port B; + +int main() { + while(1) { + BlueLed.write(1); + wait(0.2); + BlueLed.write(0); + wait(0.2); + } + } +}