Changeset 91
- Timestamp:
- 12/08/07 02:50:48 (12 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde
r90 r91 103 103 public: 104 104 Wiz810MjDevice(int resetPin); 105 106 void setIp(byte b1, byte b2, byte b3, byte b4); 105 107 106 108 private: 107 109 void _init(void); 108 110 109 int _resetPin; 111 int _resetPin; 112 113 byte _scratchBuffer[6]; // Can we make this static? 110 114 }; 111 115 … … 153 157 // configuration is used.) 154 158 sysinit(0x55, 0x55); 159 } 160 161 void Wiz810MjDevice::setIp(byte b0, byte b1, byte b2, byte b3) { 162 /* 163 164 */ 165 _scratchBuffer[0] = b0; 166 _scratchBuffer[1] = b1; 167 _scratchBuffer[2] = b2; 168 _scratchBuffer[3] = b3; 169 170 setSIPR(_scratchBuffer); 155 171 } 156 172 … … 186 202 setSUBR(config_subnet_mask); 187 203 setSHAR(config_mac_address); 188 setSIPR(config_ip_address);204 WIZ810MJ.setIp(192,168,2,105); 189 205 190 206 Serial.println("End test W5100 configuration...");