arduino-mcp23017
arduino-mcp23017 copied to clipboard
According to the issue SoftwareSerial: Make the bus more general => SPI / I2C (HW and SW)
There is also a SPI version of that chip. Why not implementing that chip also?
Hi,
Sorry for the delay. While I'd like to see an SPI version of this library, I've never played with SPI myself and I don't have an MCP23S17 at hand to develop those modifications.
If you do, I strongly encourage you to give it a try by modifying the library code. On the top of my head, a base class with high level implementation and two classes for MCP2017
and MCP23S17
communication protocol with both signatures of writeRegister
and readRegister
might do the trick :)