I hadn't finished and it submitted somehow.
The Python code is:
bytes = [0xAA, 0, 0]
print "write failed"
y0 = i2c.read(0x18,4)
This returns a status byte, but zeros for the pressure data. The i2c waveforms which I captured from an oscilloscope look different enough to matter. Can I upload them here somehow?
The command bytes to read the pressure [0xAA, 0x00, 0x00} for Arduino and Onion:
And the two responses showing that the sensor only returns zeros on the Onion
The oscilloscope interprets all of the i2c bus traffic correctly, but it appears that the sensoe is never getting triggered by the [0xAA...] command to start digitizing. So it only sends back zeros. Does anybody know why the i2c waveforms are different and how to make the Onion i2c library behave as the Arduino does which works properly. I am not having any trouble with other i2c communication from the Onion, only this sensor.
Thanks to anyone who is up on this.