The Edison is an x86, 32-bit machine. Maybe instead of int, you should try byte or uint8_t for your device address. Can you verify that you are able to read the WHO_AM_I egister of your sensor. The A4/A5 on the Arduino breakout board use the I2C6 port, one of two I2C ports on the Edison. Do you have the proper pullups on the I2C lines? The Edison has internal pullups which might be interfering with you signal, but if you can see the trace, it sounds like your device address is wrong or messed up.
↧