RobTillaart / MCP23S17

Arduino library for SPI based MCP23S17 16 channel port expander
MIT License
27 stars 11 forks source link

derived classes for specific IO expanders? #4

Closed RobTillaart closed 2 years ago

RobTillaart commented 2 years ago

The mcp23S17 is one from a family:

They can be controlled by the mcp23S17 class but the 8 bit ones do not need the 16 pins interface recently added. So 23s08 can't be derived from 23s17 but the other way around means implementing all 23s17 code anyway

so a specific 23S08 class might be better.

idem for I2C variant.

RobTillaart commented 2 years ago

Created 4 separate classes, maybe merge in a (far) future