I’m using the mangOH RED with a WP8548 module. I’m trying to access a sensor with i2c interface by using the Raspberry Pi connector provided with the mangOH but I have encountered some issues.
First of all, I tested the i2c connection and can confirm it works : I managed to read the id register of the BMP280 available at 0x76 i2c address.
I tried the batteryReading example available on the GitHub to have a better understanding on how it works. And this is where the issue occured : the application crashed when trying to write i2c data to the i2c expander at address 0x71. I understand that the ports of this expander must be enabled in order to access the battery charger. This is problematic especially because it is also needed to access Raspberry Pi i2c interface. I ran a scan on the i2c bus 0 with an ssh connection and couldn’t see a device at address 0x71. However, I could see devices at 0x68 and 0x76 (accelerometer and pressure sensor respectively, according to the datasheets).
Is the i2c expander not active by default ? Should I do something to enable its use ?
Thanks in advance,