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:c6dd4016dac6, 2022-03-24 (annotated)
- Committer:
- nathou242
- Date:
- Thu Mar 24 22:11:00 2022 +0000
- Revision:
- 0:c6dd4016dac6
tp1exo1
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| nathou242 | 0:c6dd4016dac6 | 1 | #include "mbed.h" |
| nathou242 | 0:c6dd4016dac6 | 2 | |
| nathou242 | 0:c6dd4016dac6 | 3 | /*DigitalOut myled(LED1); |
| nathou242 | 0:c6dd4016dac6 | 4 | |
| nathou242 | 0:c6dd4016dac6 | 5 | int main() { |
| nathou242 | 0:c6dd4016dac6 | 6 | while(1) { |
| nathou242 | 0:c6dd4016dac6 | 7 | myled = 1; |
| nathou242 | 0:c6dd4016dac6 | 8 | wait(0.2); |
| nathou242 | 0:c6dd4016dac6 | 9 | myled = 0; |
| nathou242 | 0:c6dd4016dac6 | 10 | wait(0.2); |
| nathou242 | 0:c6dd4016dac6 | 11 | } |
| nathou242 | 0:c6dd4016dac6 | 12 | } |
| nathou242 | 0:c6dd4016dac6 | 13 | */ |
| nathou242 | 0:c6dd4016dac6 | 14 | |
| nathou242 | 0:c6dd4016dac6 | 15 | DigitalOut led3(LED3); |
| nathou242 | 0:c6dd4016dac6 | 16 | int main() |
| nathou242 | 0:c6dd4016dac6 | 17 | { |
| nathou242 | 0:c6dd4016dac6 | 18 | while(1) { |
| nathou242 | 0:c6dd4016dac6 | 19 | led3 = !led3; |
| nathou242 | 0:c6dd4016dac6 | 20 | wait(0.5); |
| nathou242 | 0:c6dd4016dac6 | 21 | } |
| nathou242 | 0:c6dd4016dac6 | 22 | } |