A simple program to make flashing the blue Led on the board

main.cpp

Committer:
madridtelecom
Date:
2013-05-03
Revision:
0:086f27d7c7a0

File content as of revision 0:086f27d7c7a0:

/*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);
       }
   }
}