Migrate Ethernet to Ethernet3 - lathoub/Arduino-AppleMIDI-Library GitHub Wiki
Only for Wiznet W5500 chip
Home of Ethernet3
https://github.com/sstaub/Ethernet3
The below is copied from https://github.com/sstaub/Ethernet3
New init procedure
You can de- or increase the RAM-Size for the sockets, this must be done before Ethernet.begin(...)
The possible socketnumbers are:
Ethernet.init(1); -> 1 Socket with 16k RX/TX buffer
Ethernet.init(2); -> 2 Socket with 8k RX/TX buffer
Ethernet.init(4); -> 4 Socket with 4k RX/TX buffer
Ethernet.init(); -> 8 Socket with 2k RX/TX buffer
Be carefull with the MAX_SOCK_NUM in w5500.h , it cannot changed dynamicly.
example
Ethernet.init(4); // reduce to 4 Socket, each with 4k RX/TX buffer
Ethernet.begin();
RST and CS pin settings
You can set the CS and (Hardware) RST (e.g. WIZ550io or USR-ES1), this must be done before Ethernet.begin(...)
Standard is Pin 10 for CS and Pin 9 for RST
Ethernet.setCsPin(3); // set Pin 3 for CS
Ethernet.setRstPin(4); // set Pin 4 for RST
example
Ethernet.setRstPin(); // set Pin 9 for RST
Ethernet.begin();