Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Adafruit_MCP230XX : wrong adresses for MCP23008 #19

@aboudou

Description

@aboudou

Hello,

The code for Adafruit_MCP230XX uses wrong adresses for MCP23008. To make it work, I had to make the following changes (addresses come from MCP23008 datasheet)

MCP23017_IODIRA = 0x00
MCP23017_IODIRB = 0x01

MCP23017_GPIOA = 0x12

MCP23017_GPIOA = 0x09
MCP23017_GPIOB = 0x13

MCP23017_GPPUA = 0x0C

MCP23017_GPPUA = 0x06
MCP23017_GPPUB = 0x0D

MCP23017_OLATA = 0x14

MCP23017_OLATA = 0x0A
MCP23017_OLATB = 0x15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions