Im trying to set up multiple mcp23s17 using a single CS line on a D1-mini
The configuration for a single mcp23s17 works as expected
spi:
clk_pin: GPIO14
mosi_pin: GPIO13
miso_pin:
number: GPIO12
mode:
input: true
pullup: true
mcp23s17:
- id: 'mcp23s17_H1'
deviceaddress: 0
cs_pin: GPIO15
but how do I add a second device?
mcp23s17:
- id: 'mcp23s17_H1'
deviceaddress: 0
cs_pin: GPIO15
- id: 'mcp23s17_H2'
deviceaddress: 1
cs_pin: GPIO15
fails with validation complaining about reuse of the CS-line
Pin 15 is used in multiple places.
- id: mcp23s17_H2
deviceaddress: 1
cs_pin:
on the other hand I found a closed github issue More than 10 mcp23s17 causes boot loop · Issue #3437 · esphome/issues · GitHub where setting up multiple mcp23s17 worked.
I don’t want to resort to using multiple CS-line if possible.