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)