I have a Teensy 4.0 and I need to make an I2C magnetometer work using the SDA1\SCL1 pins. Like many others, I am seeing my sketch hang when endtransmission is called.
I a recent thread states wire.h does not support Tennsy 4.0 yet, but there is another library. The other library has a timeout on the endtransmission call and displays a message that the called failed.
I have 4.7k pullup resistors in place. I measured them with a scope an got 3.3 volts. (Normal) I also set a trigger on my scope to catch the edges on SDA1 and SCL1 during the I2C traffic. No edges were observed. This places the issue on the Teensy and code.
What could I have done wrong to never see voltage transitions on either I2C pins? The new library I used that shows there error message is here:
https://github.com/Richard-Gemmell/teensy4_i2c
I a recent thread states wire.h does not support Tennsy 4.0 yet, but there is another library. The other library has a timeout on the endtransmission call and displays a message that the called failed.
I have 4.7k pullup resistors in place. I measured them with a scope an got 3.3 volts. (Normal) I also set a trigger on my scope to catch the edges on SDA1 and SCL1 during the I2C traffic. No edges were observed. This places the issue on the Teensy and code.
What could I have done wrong to never see voltage transitions on either I2C pins? The new library I used that shows there error message is here:
https://github.com/Richard-Gemmell/teensy4_i2c