z3ugma 01/01/2025 11:27 PMI'm reading from an I2C sensor chip.
when I use Toit, I am not getting the results I expect per the datasheet.
When I use Arduino's Wire
library, I get exactly what I expect. Here's the code comparison between the two of them.
See the attachment for the box highlighted in Red - that's the Toit script causing the chip to misbehave.
With toit, I always get exactly whatever the first value I read from the chip. With Arduino I can read different registers without issue.
I am starting to suspect it may come down to the default state of GPIO pins, one system having it high and the other having it low, or something.
I have a logic analyzer, an ESP32 dev kit WROOM-32D