-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
@marcolettieri
Description
Hello,
I am experiencing a problem with the Wire library.
I have a raspberry that communicates i2c with Arduino Mega (2561) via i2c.
Raspberry master, Arduino slave .
when I get a read command from the raspberry to arduino and I want to read an array of 9 bytes very often, I get side raspberry 0x00 0xFF 0xFF 0xFF ... as if Arduino he could not send this array (eg wire.send (array,9);).
Instead, when I want to send to the master a string constant (eg wire.send ("hello");) this problem does not occurred.
On raspberry i'm using WiringPi for java.
there's some difference between send(array,num) and send(constant char)?
on your experience this could be related to some hardware / software wrong setup ?