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@4:5f40c9dd3d59, 2021-11-06 (annotated)
- Committer:
- ourmio
- Date:
- Sat Nov 06 10:43:48 2021 +0000
- Revision:
- 4:5f40c9dd3d59
- Parent:
- 3:82742cab589c
s
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
simon | 0:fb6bbc10ffa0 | 1 | #include "mbed.h" |
simon | 0:fb6bbc10ffa0 | 2 | |
simon | 0:fb6bbc10ffa0 | 3 | DigitalOut myled(LED1); |
ourmio | 4:5f40c9dd3d59 | 4 | //DigitalOut myled1(LED2); |
ourmio | 3:82742cab589c | 5 | |
simon | 0:fb6bbc10ffa0 | 6 | int main() { |
simon | 0:fb6bbc10ffa0 | 7 | while(1) { |
simon | 0:fb6bbc10ffa0 | 8 | myled = 1; |
ourmio | 4:5f40c9dd3d59 | 9 | // myled1 = 1; |
ourmio | 3:82742cab589c | 10 | |
ourmio | 2:6115956b148d | 11 | wait(0.5); |
ourmio | 3:82742cab589c | 12 | |
simon | 0:fb6bbc10ffa0 | 13 | myled = 0; |
ourmio | 4:5f40c9dd3d59 | 14 | // myled1 = 0; |
ourmio | 3:82742cab589c | 15 | |
ourmio | 2:6115956b148d | 16 | wait(0.5); |
ourmio | 2:6115956b148d | 17 | |
simon | 0:fb6bbc10ffa0 | 18 | } |
simon | 0:fb6bbc10ffa0 | 19 | } |