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:67c698549bda, 2019-11-11 (annotated)
- Committer:
- troshha
- Date:
- Mon Nov 11 12:06:17 2019 +0000
- Revision:
- 0:67c698549bda
1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
troshha | 0:67c698549bda | 1 | #include "mbed.h" |
troshha | 0:67c698549bda | 2 | |
troshha | 0:67c698549bda | 3 | DigitalOut myled(LED1); |
troshha | 0:67c698549bda | 4 | |
troshha | 0:67c698549bda | 5 | int main() { |
troshha | 0:67c698549bda | 6 | while(1) { |
troshha | 0:67c698549bda | 7 | myled = 1; // LED is ON |
troshha | 0:67c698549bda | 8 | wait(0.2); // 200 ms |
troshha | 0:67c698549bda | 9 | myled = 0; // LED is OFF |
troshha | 0:67c698549bda | 10 | wait(1.0); // 1 sec |
troshha | 0:67c698549bda | 11 | } |
troshha | 0:67c698549bda | 12 | } |