Digital Output simple example for WIZwiki-W7500 academy

Dependencies:   mbed

Fork of DigitalOut_HelloWorld_WIZwiki-W7500 by Lawrence Lee

main.cpp

Committer:
joon874
Date:
2015-07-02
Revision:
1:2c953f7052b3
Parent:
0:6cda4e0af931
Child:
2:a40176947d21

File content as of revision 1:2c953f7052b3:

#include "mbed.h"   

DigitalOut myled(LED1);    // On-board LED_RED

int main() {
    while(1) {
        myled = 1;       // Red LED Off
        wait(0.2);       // 0.2 sec delay
        myled = 0;       // Red LED On
        wait(0.2);
    }
}