![](/media/cache/profiles/dc90ccf23b2b02344a6f79592dd1e241.jpg.50x50_q85.jpg)
test
Dependencies: Adafruit_GFX WIZnetInterface mbed
Fork of Tweeting_Machine_HelloWorld_WIZwiki-W7500 by
Diff: main.cpp
- Revision:
- 1:5f4bd210e2f0
- Parent:
- 0:8548416648df
- Child:
- 2:c64f8d42290c
--- a/main.cpp Thu Oct 15 00:18:52 2015 +0000 +++ b/main.cpp Wed May 11 00:51:18 2016 +0000 @@ -2,8 +2,8 @@ #include "EthernetInterface.h" #include "Adafruit_SSD1306.h" -//#define TOKEN "3252156354-fG0b1utXYAg5IqeJNMSJFlenx1rgSRXm5wgk21l" -#define TOKEN "UserToken" +#define TOKEN "3252156354-fG0b1utXYAg5IqeJNMSJFlenx1rgSRXm5wgk21l" +//#define TOKEN "UserToken" // an SPI sub-class that provides a constructed default class I2CPreInit : public I2C @@ -24,7 +24,8 @@ { int phy_link; printf("Wait a second...\r\n"); - uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x03, 0x04, 0x02}; + //--------- Have to modify the mac address------------- + uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x03, 0x04, 0x22}; EthernetInterface eth; eth.init(mac_addr); //Use DHCP