Hello World example for the VBLUno51 board to blink status Led.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:77d2a9f55452
- Child:
- 1:c2b455e4df31
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Oct 13 00:42:23 2017 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + +/*For the VBLUno51 board*/ +#define PIN_LED p7 + +DigitalOut led(PIN_LED); + +int main(void) { + + //No condition loop + while(1) { + led = 1; + wait(0.2); + led = 0; + wait(0.2); + } +}