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:e466d5a3ac47, 2021-12-17 (annotated)
- Committer:
- markmoocall
- Date:
- Fri Dec 17 08:50:03 2021 +0000
- Revision:
- 0:e466d5a3ac47
Example of publish
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
markmoocall | 0:e466d5a3ac47 | 1 | #include "mbed.h" |
markmoocall | 0:e466d5a3ac47 | 2 | |
markmoocall | 0:e466d5a3ac47 | 3 | DigitalOut myled(LED1); |
markmoocall | 0:e466d5a3ac47 | 4 | |
markmoocall | 0:e466d5a3ac47 | 5 | int main() { |
markmoocall | 0:e466d5a3ac47 | 6 | while(1) { |
markmoocall | 0:e466d5a3ac47 | 7 | myled = 1; |
markmoocall | 0:e466d5a3ac47 | 8 | wait(0.2); |
markmoocall | 0:e466d5a3ac47 | 9 | myled = 0; |
markmoocall | 0:e466d5a3ac47 | 10 | wait(0.2); |
markmoocall | 0:e466d5a3ac47 | 11 | } |
markmoocall | 0:e466d5a3ac47 | 12 | } |