I'm trying to compile this library for a MEGA using B4R 3.71 and I'm getting...
C:\Users\Acer\DOCUME~1\B4RPRO~1\MPU9250\Objects\src\rMPU9250.cpp: In member function 'void B4R::B4RMPU9250_asukiaaa::Initialize2(byte, byte, byte, byte)':
rMPU9250.cpp:17:59: error: no matching function for call to 'TwoWire::begin(byte&, byte&)'
if (I2Cbus==2) {TwoWire Wire2; Wire2.begin(sda, scl); rcs->setWire(&Wire2);};
^
In file included from C:\Users\Acer\DOCUME~1\B4RPRO~1\MPU9250\Objects\src\B4RDefines.h:22:0,
from C:\Users\Acer\DOCUME~1\B4RPRO~1\MPU9250\Objects\src\rMPU9250.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:53:10: note: candidate: void TwoWire::begin()
void begin();
^~~~~
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:53:10: note: candidate expects 0 arguments, 2 provided
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:54:10: note: candidate: void TwoWire::begin(uint8_t)
void begin(uint8_t);
^~~~~
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:54:10: note: candidate expects 1 argument, 2 provided
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:55:10: note: candidate: void TwoWire::begin(int)
void begin(int);
^~~~~
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:55:10: note: candidate expects 1 argument, 2 provided
rMPU9250.cpp:18:59: error: no matching function for call to 'TwoWire::begin(byte&, byte&)'
if (I2Cbus==1) {TwoWire Wire1; Wire1.begin(sda, scl); rcs->setWire(&Wire1);}
^
In file included from C:\Users\Acer\DOCUME~1\B4RPRO~1\MPU9250\Objects\src\B4RDefines.h:22:0,
from C:\Users\Acer\DOCUME~1\B4RPRO~1\MPU9250\Objects\src\rMPU9250.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:53:10: note: candidate: void TwoWire::begin()
void begin();
^~~~~
Surely my Wire library it's behind. This isn't an ESP only library or something, is it?