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:
2:a40176947d21
Parent:
1:2c953f7052b3
Child:
3:feaf2432da5b

File content as of revision 2:a40176947d21:

/* Digital Output Example Program */

#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);
    }
}