After a marathon debugging session I discovered that I2C pins (SDA/SCL) don't work unless you set the pins to Input - for example in Pins Module in MCC. (This is on PIC16F18446, but I've read it's true on all PICs). It's in the datasheet but I didn't spot..
↧