I am currently stuck with a problem with the I2C bus when dealing with integers and arrays that I'm hoping someone has a solution for.
I have and array along this line: transferArray[5] = {25,10,7,2080,31240};
In the environment I have the values vary regularly as data is collected and manipulated before going into the array.
I need to both read the array from the slave to the master and send from the master to the slave in the same format.
I can see that sending bytes is straight forward and also sending a single integer is straight forward, but I'm struggling to get my head around the sending the array of integers making sure you have the data from the first cell of the array lines up at both ends.
To complicate this a little also is the fact that there are several slave boards so timing of the getting of the data will be important (Perhaps beginTransmission and endTransmission are used to ensure the integrity of data?
The only constant references I have are the 5 integers and the slave addresses which I cycle through checking to see if there is any data to be read back to the master.
Thanks in advance


