I have connected an arduino ATmega328P with a Raspberry through i2c.
The arduino works as a sensor and it sends data when I ask it from the Raspberry using i2cget.
The problem is that it only sends 1 byte of data. I can't send more than that.
I send the command i2cget -y 1 0x04 and arduino replies with something like 0xnn
I'm using this code in the arduino :
byte buffer; buffer = 0x25; buffer = 0x75; Wire.write( buffer, 2);
I tried some variants of this code, but I only receive the first byte.
I do have other sensors connected to the raspberry and using i2cget I receive 16 bits values in format like 0xnnnn, so I guess it's not a problem of the raspberry.
I would appreciate any help.