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 mbed_blinky by
main.cpp@0:6670f4e60a65, 2015-05-14 (annotated)
- Committer:
- vazarely
- Date:
- Thu May 14 10:07:50 2015 +0000
- Revision:
- 0:6670f4e60a65
- Child:
- 1:f6e7aaf8c139
added led2
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 | 0:6670f4e60a65 | 10 | wait(0.2); |
vazarely | 0:6670f4e60a65 | 11 | myled = 0; |
vazarely | 0:6670f4e60a65 | 12 | myled2 = 1; |
vazarely | 0:6670f4e60a65 | 13 | wait(0.2); |
vazarely | 0:6670f4e60a65 | 14 | } |
vazarely | 0:6670f4e60a65 | 15 | } |