Youssef Debdi Harrouss
/
GoodStyleFlashingLed
A simple program to make flashing the blue Led on the board
main.cpp@0:086f27d7c7a0, 2013-05-03 (annotated)
- 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?
User | Revision | Line number | New 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 | } |