PDA

View Full Version : teensy 3.1 and Wire.h



manitou
12-14-2013, 03:23 PM
teensyduino 1.17
Wire.h won't compile with board teensy 3.1, OK with teensy 3.0 ??? e.g. Example/DS1307RTC/ReadTest

DS1307RTC/DS1307RTC.cpp.o: In function `DS1307RTC::read(tmElements_t&)':
/home/linux/arduino-1.0.5/libraries/DS1307RTC/DS1307RTC.cpp:57: undefined reference to `TwoWire::beginTransmission(int)'
...

me thinks Wire.h and Wire.cpp should read
#if defined(__MK20DX128__) || defined(__MK20DX256__)

PaulStoffregen
12-14-2013, 03:34 PM
Yes, you're right. Wire wasn't updated. Some of other libraries weren't either. I'm looking into it now.

Here are updated copies:

1205

1206

manitou
12-14-2013, 04:59 PM
As you've probably already deterimined, I think the Servo library has the same problem ...

PaulStoffregen
12-14-2013, 06:19 PM
Yup. Looks like 1.18 will be coming pretty soon!