julianschuler / MCP23S08

Arduino library for the MCP23S08 SPI I/O expander
MIT License
1 stars 3 forks source link

Multiple Expanders #1

Closed fdxrate closed 3 years ago

fdxrate commented 4 years ago

Hello Julian,

Thank you for your library.

Can you confirm that it is possible to use two expanders with this library by creating two instances using the constructor MCP23S08(uint8_t csPin, uint8_t deviceAddr) to define the two different CS_pins and device addresses?

Thanks

Geoff

fdxrate commented 3 years ago

Answered for anyone else. Up to four chips can be used on the one CS_pin usiing the chips individual addresses which are externally set using their pins A1 and A0.