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@1:97855081060a, 2018-09-04 (annotated)
- Committer:
- titinho
- Date:
- Tue Sep 04 14:37:52 2018 +0000
- Revision:
- 1:97855081060a
- Parent:
- 0:ffb4d6fe4af9
Nothing special
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| titinho | 0:ffb4d6fe4af9 | 1 | #include "mbed.h" | 
| titinho | 0:ffb4d6fe4af9 | 2 | |
| titinho | 1:97855081060a | 3 | DigitalOut led(LED2); | 
| titinho | 0:ffb4d6fe4af9 | 4 | |
| titinho | 0:ffb4d6fe4af9 | 5 | int main() | 
| titinho | 0:ffb4d6fe4af9 | 6 | { | 
| titinho | 0:ffb4d6fe4af9 | 7 | while(1) { | 
| titinho | 0:ffb4d6fe4af9 | 8 | led = 1; // LED is ON | 
| titinho | 0:ffb4d6fe4af9 | 9 | wait(0.2); // 200 ms | 
| titinho | 0:ffb4d6fe4af9 | 10 | led = 0; // LED is OFF | 
| titinho | 0:ffb4d6fe4af9 | 11 | wait(0.8); // 800 ms | 
| titinho | 0:ffb4d6fe4af9 | 12 | } | 
| titinho | 0:ffb4d6fe4af9 | 13 | } |