-
Notifications
You must be signed in to change notification settings - Fork 66
Migrate Ethernet to Ethernet3
lathoub edited this page Feb 14, 2021
·
2 revisions
https://github.com/sstaub/Ethernet3
The below is copied from https://github.com/sstaub/Ethernet3
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.
Ethernet.init(4); // reduce to 4 Socket, each with 4k RX/TX buffer
Ethernet.begin();
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
Ethernet.setRstPin(); // set Pin 9 for RST
Ethernet.begin();