MCP23017 I2C Input/Output
Posted: 03 Jul 2016, 13:28
Hi all
I have my esp configured to use I2C with a MCP23017. My question is how could I use a MCPGPIO as "high" sensor?
Currently I connect a switch to GND and when closed to the GPIO of the MCP. That works and I can send the data to domoticz.
But I would like to use the switch on +3,3V instead of GND. Means if I put 3,3V to the GPIO, it should trigger the switch to domoticz.
I think I have to configure the MCP23017 somehow, but I cannot find the solution.
Hope you understand the probem
Roman
I have my esp configured to use I2C with a MCP23017. My question is how could I use a MCPGPIO as "high" sensor?
Currently I connect a switch to GND and when closed to the GPIO of the MCP. That works and I can send the data to domoticz.
But I would like to use the switch on +3,3V instead of GND. Means if I put 3,3V to the GPIO, it should trigger the switch to domoticz.
I think I have to configure the MCP23017 somehow, but I cannot find the solution.
Hope you understand the probem
Roman