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:73a14fbc3d02, 2015-04-16 (annotated)
- Committer:
- poehalcho
- Date:
- Thu Apr 16 09:01:30 2015 +0000
- Revision:
- 0:73a14fbc3d02
test
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| poehalcho | 0:73a14fbc3d02 | 1 | #include "mbed.h" |
| poehalcho | 0:73a14fbc3d02 | 2 | |
| poehalcho | 0:73a14fbc3d02 | 3 | DigitalOut myled(LED1); |
| poehalcho | 0:73a14fbc3d02 | 4 | |
| poehalcho | 0:73a14fbc3d02 | 5 | int main() { |
| poehalcho | 0:73a14fbc3d02 | 6 | while(1) { |
| poehalcho | 0:73a14fbc3d02 | 7 | myled = 1; // LED is ON |
| poehalcho | 0:73a14fbc3d02 | 8 | wait(0.05); // 200 ms |
| poehalcho | 0:73a14fbc3d02 | 9 | myled = 0; // LED is OFF |
| poehalcho | 0:73a14fbc3d02 | 10 | wait(0.05); // 1 sec |
| poehalcho | 0:73a14fbc3d02 | 11 | } |
| poehalcho | 0:73a14fbc3d02 | 12 | } |