Hello, i have been struggling a lot with this problem because the real time clock uses the same ports as the audio board for the communication, sda and scl 19-18 in the teensy.
i decided to use the ic2_t3 library that allows to use the second SCL-SDA ports (29-30), the problem was that the audio.h defined some objects and funtions that were redefined with the ic2_t3.h, what i did was changing the code of the i2c_t3.h and .cpp rewriting:
.h file
Line 803
extern i2c_t3 Wire0;
Line 314
friend void i2c0_isr2(void);
Line 300
extern "C" void i2c0_isr2(void);
.cpp file
Line 1729
i2c_t3 Wire0 = i2c_t3(0); // I2C0
Line 1245
i2c->DMA->attachInterrupt(i2c0_isr2);
I really hope this can help someone.
i decided to use the ic2_t3 library that allows to use the second SCL-SDA ports (29-30), the problem was that the audio.h defined some objects and funtions that were redefined with the ic2_t3.h, what i did was changing the code of the i2c_t3.h and .cpp rewriting:
.h file
Line 803
extern i2c_t3 Wire0;
Line 314
friend void i2c0_isr2(void);
Line 300
extern "C" void i2c0_isr2(void);
.cpp file
Line 1729
i2c_t3 Wire0 = i2c_t3(0); // I2C0
Line 1245
i2c->DMA->attachInterrupt(i2c0_isr2);
I really hope this can help someone.