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:4cdcddbd6c3d, 2019-06-15 (annotated)
- Committer:
- okano
- Date:
- Sat Jun 15 06:49:03 2019 +0000
- Revision:
- 0:4cdcddbd6c3d
my first "os5" bare-metal
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okano | 0:4cdcddbd6c3d | 1 | #include "mbed.h" |
okano | 0:4cdcddbd6c3d | 2 | |
okano | 0:4cdcddbd6c3d | 3 | DigitalOut myled(LED3); |
okano | 0:4cdcddbd6c3d | 4 | |
okano | 0:4cdcddbd6c3d | 5 | int main() { |
okano | 0:4cdcddbd6c3d | 6 | while(1) { |
okano | 0:4cdcddbd6c3d | 7 | myled = 1; |
okano | 0:4cdcddbd6c3d | 8 | wait(0.8); |
okano | 0:4cdcddbd6c3d | 9 | myled = 0; |
okano | 0:4cdcddbd6c3d | 10 | wait(0.2); |
okano | 0:4cdcddbd6c3d | 11 | } |
okano | 0:4cdcddbd6c3d | 12 | } |