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@1:340d210a0bef, 2011-10-20 (annotated)
- Committer:
- chris
- Date:
- Thu Oct 20 10:59:20 2011 +0000
- Revision:
- 1:340d210a0bef
- Parent:
- 0:f59ddb971c22
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| chris | 0:f59ddb971c22 | 1 | #include "mbed.h" |
| chris | 0:f59ddb971c22 | 2 | |
| chris | 0:f59ddb971c22 | 3 | DigitalOut myled(LED1); |
| chris | 0:f59ddb971c22 | 4 | |
| chris | 0:f59ddb971c22 | 5 | int main() { |
| chris | 1:340d210a0bef | 6 | while (1) { |
| chris | 0:f59ddb971c22 | 7 | myled = 1; |
| chris | 0:f59ddb971c22 | 8 | wait(0.2); |
| chris | 0:f59ddb971c22 | 9 | myled = 0; |
| chris | 0:f59ddb971c22 | 10 | wait(0.2); |
| chris | 0:f59ddb971c22 | 11 | } |
| chris | 0:f59ddb971c22 | 12 | } |