We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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); }
The text was updated successfully, but these errors were encountered:
Can you make a Pull Request? .init is reserved it should changed to .setSPI
Sorry, something went wrong.
For change the CS pin there is Ethernet.setCsPin(3); // set Pin 3 for CS
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.
No branches or pull requests
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);
}
The text was updated successfully, but these errors were encountered: