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

Committer:
madridtelecom
Date:
Fri May 03 20:55:09 2013 +0000
Revision:
0:086f27d7c7a0
A simple program to make flashing the blue Led on the board

Who changed what in which revision?

UserRevisionLine numberNew contents of line
madridtelecom 0:086f27d7c7a0 1 /*A simple program to make flashing the blue Led on the board*/
madridtelecom 0:086f27d7c7a0 2
madridtelecom 0:086f27d7c7a0 3 #include "mbed.h"
madridtelecom 0:086f27d7c7a0 4
madridtelecom 0:086f27d7c7a0 5 DigitalOut BlueLed(PTB18); //LED_BLUE is conected to pin 18 port B;
madridtelecom 0:086f27d7c7a0 6
madridtelecom 0:086f27d7c7a0 7 int main() {
madridtelecom 0:086f27d7c7a0 8 while(1) {
madridtelecom 0:086f27d7c7a0 9 BlueLed.write(1);
madridtelecom 0:086f27d7c7a0 10 wait(0.2);
madridtelecom 0:086f27d7c7a0 11 BlueLed.write(0);
madridtelecom 0:086f27d7c7a0 12 wait(0.2);
madridtelecom 0:086f27d7c7a0 13 }
madridtelecom 0:086f27d7c7a0 14 }
madridtelecom 0:086f27d7c7a0 15 }