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.
mbed_blinky/main.cpp@0:6a73d3dc037e, 2014-07-28 (annotated)
- Committer:
- ShawnHymel
- Date:
- Mon Jul 28 20:29:28 2014 +0000
- Revision:
- 0:6a73d3dc037e
Added main.cpp files from each of the demo programs. Libraries are not included.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ShawnHymel | 0:6a73d3dc037e | 1 | #include "mbed.h" |
| ShawnHymel | 0:6a73d3dc037e | 2 | |
| ShawnHymel | 0:6a73d3dc037e | 3 | DigitalOut myled(LED1); |
| ShawnHymel | 0:6a73d3dc037e | 4 | |
| ShawnHymel | 0:6a73d3dc037e | 5 | int main() { |
| ShawnHymel | 0:6a73d3dc037e | 6 | while(1) { |
| ShawnHymel | 0:6a73d3dc037e | 7 | myled = 1; |
| ShawnHymel | 0:6a73d3dc037e | 8 | wait(0.2); |
| ShawnHymel | 0:6a73d3dc037e | 9 | myled = 0; |
| ShawnHymel | 0:6a73d3dc037e | 10 | wait(0.2); |
| ShawnHymel | 0:6a73d3dc037e | 11 | } |
| ShawnHymel | 0:6a73d3dc037e | 12 | } |