전시회용
Dependencies: PWM_Tone_Library SDFileSystem WIZnetInterface httpServer_orgel mbed
Fork of Internet_Orgel by
Diff: main.cpp
- Revision:
- 27:47ba03e9786b
- Parent:
- 23:17bcb0c6105c
--- a/main.cpp Thu Jun 02 01:00:17 2016 +0000 +++ b/main.cpp Fri Oct 21 04:01:42 2016 +0000 @@ -4,19 +4,21 @@ #include "HTTPServer.h" #include "SDFileSystem.h" -#if defined(TARGET_WIZWIKI_W7500)||defined(TARGET_WIZWIKI_W7500P) +#define DHCP + +#if defined(TARGET_WIZWIKI_W7500)||defined(TARGET_WIZWIKI_W7500P)||defined(TARGET_WIZWIKI_W7500ECO) //Choose one of file system. SDFileSystem local(SD_MOSI, SD_MISO, SD_CLK, SD_SEL, "local");//PB_3, PB_2, PB_1, PB_0 //LocalFileSystem local("local"); #endif -#if defined(TARGET_WIZWIKI_W7500)||defined(TARGET_WIZWIKI_W7500P) - uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x00, 0x01, 0x02}; +#if defined(TARGET_WIZWIKI_W7500)||defined(TARGET_WIZWIKI_W7500P)||defined(TARGET_WIZWIKI_W7500ECO) + uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0xff, 0xff, 0x11}; #endif EthernetInterface eth; HTTPServer svr; -char ip_addr[] = "192.168.240.111"; +char ip_addr[] = "192.168.240.112"; char subnet_mask[] = "255.255.255.0"; char gateway_addr[] = "192.168.240.1"; @@ -28,7 +30,7 @@ HTTPFsRequestHandler::mount("/local/", "/"); svr.addHandler<HTTPFsRequestHandler>("/"); -#if defined(TARGET_WIZWIKI_W7500)||defined(TARGET_WIZWIKI_W7500P) +#if defined(TARGET_WIZWIKI_W7500)||defined(TARGET_WIZWIKI_W7500ECO)||defined(TARGET_WIZWIKI_W7500P) #ifdef DHCP eth.init(mac_addr); //Use DHCP