Open BluesBilly opened 2 years ago
Can you make a Pull Request? .init is reserved it should changed to .setSPI
For change the CS pin there is Ethernet.setCsPin(3); // set Pin 3 for CS
Indeed, setspi is more reasonable. You need to add the function of setspi instead of using global SPI.
Can you overload init() function? You can specify which SPI bus to use.
void EthernetClass::init(uint8_t sspin) { W5100.setSS(sspin); }
void EthernetClass::init(uint8_t sspin, SPIClass &spi) { _spi = spi; W5100.setSS(sspin); }