Demo Program 2 for Wiflash
Dependencies: EthernetInterface mbed-rtos mbed wiflash2
Fork of TCPSocket_HelloWorld by
main.cpp
00001 #include "mbed.h" 00002 #include "EthernetInterface.h" 00003 #include "wiflash.h" // Include our wiflash library 00004 00005 Wiflash wf; // Pass in a reference to the Ethernet interface object to the Wiflash object 00006 DigitalOut myled(LED1); 00007 DigitalOut myled1(LED2); 00008 DigitalOut myled2(LED3); 00009 DigitalOut myled3(LED4); 00010 00011 int main() { 00012 wf.setUp(); 00013 printf("Inside main!\n"); 00014 while(1) { 00015 myled = 1; 00016 wait(0.4); 00017 myled1 = 1; 00018 wait(0.4); 00019 myled2 = 1; 00020 wait(0.4); 00021 myled3 = 1; 00022 wait(0.4); 00023 myled3 = 0; 00024 wait(0.4); 00025 myled2 = 0; 00026 wait(0.4); 00027 myled1 = 0; 00028 wait(0.4); 00029 myled = 0; 00030 wait(0.4); 00031 } 00032 }
Generated on Wed Jul 13 2022 07:23:34 by 1.7.2