I'm trying to interface to a MEMSic MXC6655XA accelerometer from a Raspberry Pico board - without luck.
http://www.memsic.com/uploadfiles/2020/ ... 019223.pdf
An I2C scan results in three addresses, 0x2b, 0x2c and 0x2d. According to the datasheet the IC should be on 0x15, or 0x2a (?). So the first thing I don't really get is why the accelerometer reports three addresses after a scan and why they don't match.
Anyway, the real issue is that I'm not able to read the sensor. Reading the datasheet the protocol does not really match a normal I2C read or read from mem as they are described here
https://micropython.nxez.com/docs/micro ... e.I2C.html
I have tried them in different combinations and with different addresses but the Pico crashes. Any assistance how to handle this implementation of I2C would be much appreciated. What I was initially hoping for was that it would be as simple as
Code: Select all
value = i2c.readfrom_mem(0x2b, 0x00, 1)
Stefan