Skip to content

Inconsistent addressing #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wmrichman opened this issue Dec 3, 2020 · 3 comments
Closed

Inconsistent addressing #52

wmrichman opened this issue Dec 3, 2020 · 3 comments

Comments

@wmrichman
Copy link

I'm curious why i2cScanner shows two MCP23017 ICs (one with addresses jumpered all high, the other all low) as 0x20 and 0x27, but I have to use 0 and 7 in the "begin()" statements for it to work. Using 0x20 and 0x27 compiled and sort of worked, but I ended up getting readings from the first chip for both addresses. That seems inconsistent, as the other Adafruit libraries I've used seem to use the full i2c address.

Also, actually saying "begin(0)" results in an error; apparently since it's the default it's not allowed to be used?

@PizzaProgram
Copy link

Did you try this working example first?
#15 (comment)

@wmrichman
Copy link
Author

Thanks. I had gotten it working using single digit addresses. I was just pointing out that it's inconsistent with the way Adafruit has done the addressing on their other parts.

@ladyada
Copy link
Member

ladyada commented Dec 15, 2020

yes this is an ancient library, one of the first arduino libraries in general :D so there were no standards then. we have a standard now, but dont want to break example code.

@ladyada ladyada closed this as completed Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants