If the library was provided by Arduino, the wire library should change to match the board when you select the board as a Mega2560. I use the standard wire library with a Mega as an I2C slave.
If the library was provided by Arduino, the wire library should change to match the board when you select the board as a Mega2560. I use the standard wire library with a Mega as an I2C slave.