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.
Dependencies: mbed
Fork of DigitalOut_HelloWorld_WIZwiki-W7500 by
main.cpp@1:2c953f7052b3, 2015-07-02 (annotated)
- Committer:
- joon874
- Date:
- Thu Jul 02 07:30:12 2015 +0000
- Revision:
- 1:2c953f7052b3
- Parent:
- 0:6cda4e0af931
- Child:
- 2:a40176947d21
Digital Output example for WIZwiki-W7500 Academy
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| joon874 | 0:6cda4e0af931 | 1 | #include "mbed.h" |
| joon874 | 0:6cda4e0af931 | 2 | |
| joon874 | 0:6cda4e0af931 | 3 | DigitalOut myled(LED1); // On-board LED_RED |
| joon874 | 0:6cda4e0af931 | 4 | |
| joon874 | 0:6cda4e0af931 | 5 | int main() { |
| joon874 | 0:6cda4e0af931 | 6 | while(1) { |
| joon874 | 1:2c953f7052b3 | 7 | myled = 1; // Red LED Off |
| joon874 | 1:2c953f7052b3 | 8 | wait(0.2); // 0.2 sec delay |
| joon874 | 1:2c953f7052b3 | 9 | myled = 0; // Red LED On |
| joon874 | 1:2c953f7052b3 | 10 | wait(0.2); |
| joon874 | 0:6cda4e0af931 | 11 | } |
| joon874 | 0:6cda4e0af931 | 12 | } |
