![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test publish
main.cpp@1:cf7e478c19cc, 2015-05-20 (annotated)
- Committer:
- Gunn
- Date:
- Wed May 20 02:05:28 2015 +0000
- Revision:
- 1:cf7e478c19cc
- Parent:
- 0:963575f3e31d
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Gunn | 0:963575f3e31d | 1 | #include "mbed.h" |
Gunn | 0:963575f3e31d | 2 | |
Gunn | 0:963575f3e31d | 3 | DigitalOut myled(LED1); |
Gunn | 0:963575f3e31d | 4 | |
Gunn | 0:963575f3e31d | 5 | int main() { |
Gunn | 0:963575f3e31d | 6 | while(1) { |
Gunn | 0:963575f3e31d | 7 | myled = 1; // LED is ON |
Gunn | 1:cf7e478c19cc | 8 | wait(1.2); // 200 ms |
Gunn | 0:963575f3e31d | 9 | myled = 0; // LED is OFF |
Gunn | 0:963575f3e31d | 10 | wait(1.0); // 1 sec |
Gunn | 0:963575f3e31d | 11 | } |
Gunn | 0:963575f3e31d | 12 | } |