I'm trying interface a Arduino Mega board (as master), with a PIC16F818 microcontroler (as slave), by I2C bus, but isn't working :'(
I've tested the communication between two arduinos by I2C, and worked. I tested the I2C communication between two PICs 16F818, and it worked too. But when I try to communicate a Arduino Mega with a PIC, it doesn't work =/
Someone have example codes for me? I've searched A LOT on the web, with no sucess...
Obs.: The hardware configuration seems ok, the Arduino Mega already has the pull-ups resistors on SDA and SCL, so I just connected both SDA, SCL and GND from Arduino and the PIC.
Please, I need help! :'(