Digital Output simple example for WIZwiki-W7500 academy
Dependencies: mbed
Fork of DigitalOut_HelloWorld_WIZwiki-W7500 by
main.cpp
- Committer:
- IOP
- Date:
- 2015-10-13
- Revision:
- 8:9857ad80f52e
- Parent:
- 7:d4c147471a03
- Child:
- 9:830f3db9d8b2
File content as of revision 8:9857ad80f52e:
/* Digital Output Example Program */ #include "mbed.h" DigitalOut myled_R(D5); // LED_RED on easy module shield DigitalOut myled_G(D6); // LED_GREEN on easy module shield DigitalOut myled_Y(D7); // LED_BLUE on easy module shield int main() { while(1) { myled_R = 0; // Red LED ON myled_G = 1; // Green LED OFF myled_Y = 1; // Blue LED OFF wait(0.5); // 0.5 sec delay myled_R = 1; // Red LED OFF myled_G = 0; // Green LED ON myled_Y = 1; // Blue LED OFF wait(0.5); // 0.5 sec delay myled_R = 1; // Red LED OFF myled_G = 1; // Green LED OFF myled_Y = 0; // Blue LED ON wait(0.5); // 0.5 sec delay myled_R = 0; // Red LED ON myled_G = 0; // Green LED ON myled_Y = 0; // Blue LED ON wait(0.5); // 0.5 sec delay } }