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?
MCP23017 I2C Address
-
Alan_37
- Posts: 205
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 7:23 pm
- Has thanked: 57 times
- Been thanked: 28 times
-
BenR
- Matrix Staff
- Posts: 2307
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 639 times
- Been thanked: 848 times
Re: MCP23017 I2C Address
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.
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.
-
BenR
- Matrix Staff
- Posts: 2307
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 639 times
- Been thanked: 848 times