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@2:2b5433be1b6a, 2018-07-16 (annotated)
- Committer:
- SamCHogg
- Date:
- Mon Jul 16 14:32:35 2018 +0000
- Revision:
- 2:2b5433be1b6a
- Parent:
- 1:03286b30a379
- Child:
- 3:14cc4e18dc51
Change wait
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 | 2:2b5433be1b6a | 10 | wait(0.4); |
| SamCHogg | 0:b30a760c89e1 | 11 | } |
| SamCHogg | 0:b30a760c89e1 | 12 | } |