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@0:e8f064f4a2e6, 2014-03-27 (annotated)
- Committer:
- mbedaddict
- Date:
- Thu Mar 27 10:31:53 2014 +0000
- Revision:
- 0:e8f064f4a2e6
First commmmmmmmmmmmmittttttttt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbedaddict | 0:e8f064f4a2e6 | 1 | #include "mbed.h" |
mbedaddict | 0:e8f064f4a2e6 | 2 | |
mbedaddict | 0:e8f064f4a2e6 | 3 | DigitalOut myled(LED1); |
mbedaddict | 0:e8f064f4a2e6 | 4 | |
mbedaddict | 0:e8f064f4a2e6 | 5 | int main() { |
mbedaddict | 0:e8f064f4a2e6 | 6 | while(1) { |
mbedaddict | 0:e8f064f4a2e6 | 7 | myled = 1; // LED is ON |
mbedaddict | 0:e8f064f4a2e6 | 8 | wait(0.2); // 200 ms |
mbedaddict | 0:e8f064f4a2e6 | 9 | myled = 0; // LED is OFF |
mbedaddict | 0:e8f064f4a2e6 | 10 | wait(1.0); // 1 sec |
mbedaddict | 0:e8f064f4a2e6 | 11 | } |
mbedaddict | 0:e8f064f4a2e6 | 12 | } |