The i2c_t3 library is basically command compatible with the are library.
you change the:
#include <wire.h> to
#include <i2c_t3.h>
This is how I do it in the library for my LED shields:
Code:
#if defined(__MK20DX128__) || defined(__MK20DX256__) //Teensy 3.x
#include "i2c_t3.h" //Can be down loaded from http://forum.pjrc.com/threads/21680-New-I2C-library-for-Teensy3
#else
#include "Wire.h"
#endif
then when you call the Wire.begin(method):
Code:
#if defined(__MK20DX128__) || defined(__MK20DX256__) //Teensy 3.0 or Teensy 3.1
Wire.begin(I2C_MASTER, 0, I2C_PINS_18_19, I2C_PULLUP_EXT, I2C_RATE_1000);
#else
Wire.begin();
#endif
And that should do the trick. The i2c_t3 library has a number of other tricks up its sleeve but i have not yet worked with those.
Definitely update to Teensy 1.19!