![](/media/cache/group/IOP_DtuxQTL.jpg.50x50_q85.jpg)
Tweeting Machine with WIZwiki-W7500 for WIZnet Academy
Dependencies: Adafruit_GFX WIZnetInterface mbed
Fork of Tweeting_Machine_HelloWorld_WIZwiki-W7500 by
Revision 1:5f4bd210e2f0, committed 2016-05-11
- Comitter:
- irinakim
- Date:
- Wed May 11 00:51:18 2016 +0000
- Parent:
- 0:8548416648df
- Commit message:
- Add comment
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8548416648df -r 5f4bd210e2f0 main.cpp --- 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