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:b30a760c89e1, 2017-10-26 (annotated)
- Committer:
- SamCHogg
- Date:
- Thu Oct 26 14:14:08 2017 +0000
- Revision:
- 0:b30a760c89e1
- Child:
- 1:03286b30a379
My blinky
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| SamCHogg | 0:b30a760c89e1 | 1 | #include "mbed.h" |
| SamCHogg | 0:b30a760c89e1 | 2 | |
| SamCHogg | 0:b30a760c89e1 | 3 | DigitalOut myled(LED1); |
| SamCHogg | 0:b30a760c89e1 | 4 | |
| SamCHogg | 0:b30a760c89e1 | 5 | int main() { |
| SamCHogg | 0:b30a760c89e1 | 6 | while(1) { |
| SamCHogg | 0:b30a760c89e1 | 7 | myled = 1; |
| SamCHogg | 0:b30a760c89e1 | 8 | wait(0.2); |
| SamCHogg | 0:b30a760c89e1 | 9 | myled = 0; |
| SamCHogg | 0:b30a760c89e1 | 10 | wait(0.2); |
| SamCHogg | 0:b30a760c89e1 | 11 | } |
| SamCHogg | 0:b30a760c89e1 | 12 | } |