Adafruit
ESP32

MCP23017 with ESP32: Pinout, I2C Address (0x20-0x27), Code

A complete guide to the MCP23017 I/O expander with schematics. Add 16 GPIO pins to an ESP32 over I2C, set the address with A0–A2, and drive 8 LEDs and 3 switches with the Adafruit_MCP23X17 library. Step by step, with full sample code.

作成: 2021-09-30 ・ 更新: 2026-08-18