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.
Fork of Nucleo_blink_led by
main.cpp@1:29a5b5945046, 2014-06-03 (annotated)
- Committer:
- MACRUM
- Date:
- Tue Jun 03 02:09:45 2014 +0000
- Revision:
- 1:29a5b5945046
- Parent:
- 0:50021795f51c
Modified
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hirokazu_yago | 0:50021795f51c | 1 | #include "mbed.h" |
hirokazu_yago | 0:50021795f51c | 2 | |
hirokazu_yago | 0:50021795f51c | 3 | PwmOut myled(LED1); |
hirokazu_yago | 0:50021795f51c | 4 | |
hirokazu_yago | 0:50021795f51c | 5 | int main() { |
hirokazu_yago | 0:50021795f51c | 6 | while(1) { |
MACRUM | 1:29a5b5945046 | 7 | myled = 0.5; // LED is ON |
hirokazu_yago | 0:50021795f51c | 8 | wait(0.2); // 200 ms |
MACRUM | 1:29a5b5945046 | 9 | myled = 0.05; // LED is OFF |
MACRUM | 1:29a5b5945046 | 10 | wait(1.5); // 1 sec |
hirokazu_yago | 0:50021795f51c | 11 | } |
hirokazu_yago | 0:50021795f51c | 12 | } |