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:f6e7aaf8c139, 2015-05-14 (annotated)
- Committer:
- vazarely
- Date:
- Thu May 14 10:09:34 2015 +0000
- Revision:
- 1:f6e7aaf8c139
- Parent:
- 0:6670f4e60a65
- Child:
- 2:6dbdd5ad7d93
slowdown blinking rate
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| vazarely | 0:6670f4e60a65 | 1 | #include "mbed.h" |
| vazarely | 0:6670f4e60a65 | 2 | |
| vazarely | 0:6670f4e60a65 | 3 | DigitalOut myled(LED1); |
| vazarely | 0:6670f4e60a65 | 4 | DigitalOut myled2(LED2); |
| vazarely | 0:6670f4e60a65 | 5 | |
| vazarely | 0:6670f4e60a65 | 6 | int main() { |
| vazarely | 0:6670f4e60a65 | 7 | while(1) { |
| vazarely | 0:6670f4e60a65 | 8 | myled = 1; |
| vazarely | 0:6670f4e60a65 | 9 | myled2 = 0; |
| vazarely | 1:f6e7aaf8c139 | 10 | wait(0.5); |
| vazarely | 0:6670f4e60a65 | 11 | myled = 0; |
| vazarely | 0:6670f4e60a65 | 12 | myled2 = 1; |
| vazarely | 1:f6e7aaf8c139 | 13 | wait(0.5); |
| vazarely | 0:6670f4e60a65 | 14 | } |
| vazarely | 0:6670f4e60a65 | 15 | } |