MCP23017_ESP32 mcp23017 + esp32 with interrupt on arduino framework need: mcp23017 adafruit library: https://github.com/adafruit/Adafruit-MCP23017-Arduino-Library