problem with the I2C multiplexer PCA9544D and Pi4J

11 views
Skip to first unread message

jiris...@googlemail.com

unread,
Sep 1, 2017, 11:25:24 AM9/1/17
to Pi4J
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
Reply all
Reply to author
Forward
0 new messages