Hello World example for the VBLUno51 board to blink status Led.

Dependencies:   mbed

Committer:
vbluno_support
Date:
Wed Nov 01 01:30:26 2017 +0000
Revision:
2:97240af8a671
Parent:
1:c2b455e4df31
use Pin names of VBLUNO51

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vbluno_support 0:77d2a9f55452 1 #include "mbed.h"
vbluno_support 0:77d2a9f55452 2
vbluno_support 1:c2b455e4df31 3 DigitalOut led(LED); /*LED is pin name for user led on the VNG VBLUNO51 platform*/
vbluno_support 1:c2b455e4df31 4
vbluno_support 0:77d2a9f55452 5 int main(void) {
vbluno_support 0:77d2a9f55452 6
vbluno_support 0:77d2a9f55452 7 //No condition loop
vbluno_support 0:77d2a9f55452 8 while(1) {
vbluno_support 0:77d2a9f55452 9 led = 1;
vbluno_support 0:77d2a9f55452 10 wait(0.2);
vbluno_support 0:77d2a9f55452 11 led = 0;
vbluno_support 0:77d2a9f55452 12 wait(0.2);
vbluno_support 0:77d2a9f55452 13 }
vbluno_support 0:77d2a9f55452 14 }