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