capricorn one
Well-known member
Been wanting this for a long time, curious if there's a reason why it hasn't been implemented. Same way the SD library allows you to specify the chip select pin (which can be done from and DIO pin), would be great if this same pin could be changed in the Ethernet library. In addition, for people using the W5200 ethernet chip, the reset pin as well.
Currently, you can do this somewhat easily by changing the #define W5200_RESET_PIN 9 and #define W5200_SS_PIN 10 in the W5100.cpp file, however, I really hate having to make changes in the core libraries, especially when I don't use the same reset and chip select pins for every design. Means having to edit the core every time I switch a sketch to a different or download updates.
Seems like it would be an easy function to implement, similar to the setSCK(), setMOSI() etc. function of the SPI library.
Oh... also, #define MAX_SOCK_NUM 4 ?? This isn't quite as important to me, but I do have a project that uses all 8 sockets available on the W5200.
Happy to write the code if that helps!
Currently, you can do this somewhat easily by changing the #define W5200_RESET_PIN 9 and #define W5200_SS_PIN 10 in the W5100.cpp file, however, I really hate having to make changes in the core libraries, especially when I don't use the same reset and chip select pins for every design. Means having to edit the core every time I switch a sketch to a different or download updates.
Seems like it would be an easy function to implement, similar to the setSCK(), setMOSI() etc. function of the SPI library.
Oh... also, #define MAX_SOCK_NUM 4 ?? This isn't quite as important to me, but I do have a project that uses all 8 sockets available on the W5200.
Happy to write the code if that helps!
Last edited: