onehorse
Well-known member
I rewrote an Arduino sketch that used a simple I2C.h TWI library to use the Wire.h library instead. The sketch doesn't work on the Teensy 3.1 with the I2C.h library. When I tried to use it on the Arduino, the device kept cycling when it hit the wire.begin() and never got into the void loop. Does this have something to do with the 10 k pull-up resistors on the sensor breakout board I am using? I know there is some issue with Wire.h and external pullups but I really don't understand it. Should I expect the Wire.h library to work better with the Teensy 3.1? I guess I should have tried it before posting, sorry. I want to be able to run sketches both on the Arduino 3.3 V 8 MHz Pro Mini and the Teensy 3.1. Which I2C library is recommended for such compatibility? Thanks for your help!