using MCP23017 I/O expander for inputs