Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 | } |