Hello,
I have connected an I2C multiplexer (PCA9544D) to address 0x70 of the I2C bus. With the wiringpi tools can with
ic2set -y 1 0x70 0x04 0x04 for mux channel 0,
ic2set -y 1 0x70 0x04 0x04 for mux channel 1,
ic2set -y 1 0x70 0x04 0x04 for mux channel 2,
ic2set -y 1 0x70 0x04 0x04 for mux channel 3
are switched back and forth between the multiplex channels.
How can I now e.g. a device that is connected to multiplexer channel 0, address 0x22 in Pi4J as a device:
I2CBus i2cBus = I2CFactory.getInstance (I2CBus.BUS_1);
final I2CDevice device;
device = i2cBus.getDevice (?????);
best regards
jirish