Re: PIC18F47K42 - Master I2C @ 100KHz using OLED display
In my opinion, if you have code working on an 18F46K22 it would be easier to throw away the MCC code
and just write a set of routines to bit-bang the I2C sequences (start, stop, write byte, etc). There are plenty of examples and app notes showing how to do that.
The I2C peripheral on the K42 is very different from the MSSP peripheral of the K22.