MCP23017 I2C Address

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
Alan_37
Posts: 141
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 43 times
Been thanked: 19 times

MCP23017 I2C Address

Post 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?

BenR
Matrix Staff
Posts: 1786
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 455 times
Been thanked: 621 times

Re: MCP23017 I2C Address

Post 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.

Alan_37
Posts: 141
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 43 times
Been thanked: 19 times

Re: MCP23017 I2C Address

Post by Alan_37 »

Hi Ben

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

Alan_37
Posts: 141
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 43 times
Been thanked: 19 times

Re: MCP23017 I2C Address

Post 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?

BenR
Matrix Staff
Posts: 1786
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 455 times
Been thanked: 621 times

Re: MCP23017 I2C Address

Post by BenR »

Hi Alan,

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

Post Reply