Page 1 of 1

MCP23017 I2C Address

Posted: Mon Feb 01, 2021 9:36 am
by Alan_37
Hi

I am currently working with multiple MCP23017 modules and noticed that if we Could change the Module Address in the program Would save a lot of space.
Right now I am duplicating the macros just for talking to a different module when we could just set a different address in the beginning and use the same macro is this something that can be done, please?

Re: MCP23017 I2C Address

Posted: Mon Feb 01, 2021 11:37 am
by BenR
Hi Alan,

Thanks great suggestion. I've now added a new macro for you so you can set the address on the fly.

Let me know how you get on.

Re: MCP23017 I2C Address

Posted: Mon Feb 01, 2021 8:56 pm
by Alan_37
Hi Ben

Just tested it, works great! Thanks very much for your help.

Re: MCP23017 I2C Address

Posted: Sun May 30, 2021 10:25 pm
by Alan_37
Hi Ben

After a recent update, this macro Set Address disappeared and can't compile
is it possible to add it again Please?

Re: MCP23017 I2C Address

Posted: Tue Jun 01, 2021 10:21 pm
by BenR
Hi Alan,

Sorry about that, should be back for you again now.