MCP23008

0x20

The MCP23008 is an alternative to the MCP23017 with 8 GPIOs instead of 16. Since it works the same way and is supported in WiringPi we've added it here.

Some of our future boards are based on the QFN package variant of the MCP23008 due its tiny footprint.

  • Physical pin
  • WiringPi pin
  • Currently ,
Toggle Output All On All Off

WiringPi Guide

Read

gpio -x mcp23008:100:0x20 read 108

Write

gpio -x mcp23008:100:0x20 mode 108 out
gpio -x mcp23008:100:0x20 write 108 1
  • Operating voltage: - 1.8V to 5.5V
  • Maximum current into VDD pin: 125mA
  • Maximum current out of VSS pin: 150mA

Address Selection

Address A2 A1 A0
0x20
0x21
0x22
0x23
0x24
0x25
0x26
0x27