What would cause code to execute perfectly with wire.h, but malfunction with i2c_t3.h

Status
Not open for further replies.

RRdae

Active member
I have a library for the AMS as5048b encoder that works perfectly on Wire1 when used with the original wire library wire.h, but when I change to i2c_t3, the enhanced i2c library, it refuses to function. It gives no errors, no conflicts, and the libraries are not being used simultaneously.

I use i2c_t3 on a completely separate program on the same teensy 3.6 at a separate time and it works flawlessly there, so I know the library is ok.

What is it about this library that does not like the change from wire.h to i2c_t3.h?

Please note that the ONLY thing I am changing, that causes it to malfunction, is the includes "wire.h" -> "i2c_t3.h".

Problematic library attached:
Code:
[ATTACH]20868._xfImport[/ATTACH][ATTACH]20869._xfImport[/ATTACH]
 
wire begin.jpg


i just had the same issue today converting from wire ti i2c_t3.

in the pic are the commands that fixed it for me. the wire begin had to be like them.

if you havent seen this page:

https://forum.pjrc.com/threads/21680-New-I2C-library-for-Teensy3
 
Status
Not open for further replies.
Back
Top