IOP / Mbed 2 deprecated DigitalOut_HelloWorld_WIZwiki-W7500

Dependencies:   mbed

Fork of DigitalOut_HelloWorld_WIZwiki-W7500 by Lawrence Lee

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?

UserRevisionLine numberNew 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 }