Skip to content

Conversation

pschatzmann
Copy link

@pschatzmann pschatzmann commented Oct 5, 2025

For I2C we can pass a TwoWire object to the beginI2C() method.
However for SPI we can't pass the SPIClass and SPI is hard coded!

There are quite some processors that have multiple SPI ports and since the SPIClass is part of the Core Arduino API, I don't see any reason for this restriction.

Therefore I extended the method to be

    bool beginSPI(uint8_t csPin, SPIClass &spiPort=SPI); //Communicate using SPI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant