PIC18F27K42 simpler I2C interface
I was having trouble geting I2C to work on a PC18F27K42. The MCC generated code was way to cumbersome for my needs. @Mysil pointed me to some examples and AN's. With that infoamtion as the basis I offer as simple I2C interface using Chris Best's example, the functions supplied in the MCC I2C_simple_master.C augmented with bitwise functions by Jeff Rowberg's work on the MPU6050
https://www.microchip.com/forums/FindPost/1162457 Only for PIC18___K42 that have the new I2C peripheral, that so far is used only in _K42, _K83, and _Q43 family devices.
Pete