Hi, i want to comunicate on one i2c with another Arduino and some sensor boards and a port expander. How to set the adress . e.g 0x45
Best Thomas
By expanding post #2, I would say--
Every Slave in the I2C Bus is assigned a 7-bit address. So, when your given address 0x45 is expanded in bit form, we will get: 010 0101 and NOT 0100 0101.
In the sketch of Slave, just the include the following two lines:
#include<Wire.h> //in the Global area
Wire.begin(0b0100101); //in the setup function