arduino-mcp23017 icon indicating copy to clipboard operation
arduino-mcp23017 copied to clipboard

According to the issue SoftwareSerial: Make the bus more general => SPI / I2C (HW and SW)

Open Beerlesklopfer opened this issue 4 years ago • 1 comments

There is also a SPI version of that chip. Why not implementing that chip also?

Beerlesklopfer avatar Mar 04 '20 10:03 Beerlesklopfer

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 :)

blemasle avatar Mar 10 '20 20:03 blemasle