
Demo Program 2 for Wiflash
Dependencies: EthernetInterface mbed-rtos mbed wiflash2
Fork of TCPSocket_HelloWorld by
main.cpp
- Committer:
- adhithyan15
- Date:
- 2015-05-01
- Revision:
- 16:b2b0fa8c2f0b
- Parent:
- 11:59dcefdda506
File content as of revision 16:b2b0fa8c2f0b:
#include "mbed.h" #include "EthernetInterface.h" #include "wiflash.h" // Include our wiflash library Wiflash wf; // Pass in a reference to the Ethernet interface object to the Wiflash object DigitalOut myled(LED1); DigitalOut myled1(LED2); DigitalOut myled2(LED3); DigitalOut myled3(LED4); int main() { wf.setUp(); printf("Inside main!\n"); while(1) { myled = 1; wait(0.4); myled1 = 1; wait(0.4); myled2 = 1; wait(0.4); myled3 = 1; wait(0.4); myled3 = 0; wait(0.4); myled2 = 0; wait(0.4); myled1 = 0; wait(0.4); myled = 0; wait(0.4); } }