Arduino 101 - no I2c slave mode support in new version of wire.h

Hi everyone!

I’m trying to communicate arduino 101 (slave) and Raspberry Pi2 (master) using i2c and Wire.h library, but when I try to compile the sketch, I got this errors:

error: no matching function for call to ‘TwoWire::begin(int)’
note: candidate expects 0 arguments, 1 provided
error: ‘class TwoWire’ has no member named ‘onReceive’

I’m using the example code: Wire Slave Receiver included in arduino IDE examples.

I have looked the files Wire.cpp and Wire.h placed in /packages/Intel/hardware/arc32/1.0.4/libraries/Wire/ and this “slave” callbacks are not defined.

Has somebody else the same problem? or maybe solutions?

I have attached the new version of Wire.h and Wire.cpp for this arduino.

thanks in advance : )

Wire.cpp (4.52 KB)

Wire.h (2.05 KB)

Hi, just to say that I'm experiencing the same Problem: trying to communicate Arduino 101 (slave) and Arduino Uno (master) using I2C and Wire.h library. I got the same issues.

Check the i2c timing is right. I feel like they are not running at 100 kH correctly from Arduino 101 side. I have the same code running on Arduino 101 and UNO, and see that Arduino 101 LCD update is 311ms while UNO LCD update is 30ms. So there is definitely timing issue. I don't have a scope to test this out yet.

EDIT: Just found out that I2C slave mode is not supported on 101. I have no idea why, but would love to know.

Same problem here. In both desktop IDE and Create.