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.
Dependencies: mbed
main.cpp@4:da46bcd42799, 2017-02-03 (annotated)
- Committer:
- odb
- Date:
- Fri Feb 03 08:33:25 2017 +0000
- Revision:
- 4:da46bcd42799
- Parent:
- 2:b60cb847489c
- Child:
- 5:3121f8550958
CORE-1000 First
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| screamer | 0:005629fe3609 | 1 | #include "mbed.h" |
| screamer | 0:005629fe3609 | 2 | |
| odb | 4:da46bcd42799 | 3 | DigitalOut (myled,PC_9); |
| screamer | 0:005629fe3609 | 4 | |
| screamer | 0:005629fe3609 | 5 | int main() { |
| screamer | 0:005629fe3609 | 6 | while(1) { |
| bcostm | 2:b60cb847489c | 7 | myled = 1; // LED is ON |
| odb | 4:da46bcd42799 | 8 | wait(1.0); // 200 ms |
| bcostm | 2:b60cb847489c | 9 | myled = 0; // LED is OFF |
| bcostm | 2:b60cb847489c | 10 | wait(1.0); // 1 sec |
| screamer | 0:005629fe3609 | 11 | } |
| screamer | 0:005629fe3609 | 12 | } |