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:aa81a657a637, 2017-08-02 (annotated)
- Committer:
- tuthai
- Date:
- Wed Aug 02 09:51:12 2017 +0000
- Revision:
- 0:aa81a657a637
Initial commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| tuthai | 0:aa81a657a637 | 1 | #include "mbed.h" |
| tuthai | 0:aa81a657a637 | 2 | |
| tuthai | 0:aa81a657a637 | 3 | DigitalOut myled(LED1); |
| tuthai | 0:aa81a657a637 | 4 | |
| tuthai | 0:aa81a657a637 | 5 | int main() { |
| tuthai | 0:aa81a657a637 | 6 | while(1) { |
| tuthai | 0:aa81a657a637 | 7 | myled = 1; |
| tuthai | 0:aa81a657a637 | 8 | wait(0.2); |
| tuthai | 0:aa81a657a637 | 9 | myled = 0; |
| tuthai | 0:aa81a657a637 | 10 | wait(0.2); |
| tuthai | 0:aa81a657a637 | 11 | } |
| tuthai | 0:aa81a657a637 | 12 | } |