I am sending display data from one Arduino to another via I2C. The display is an 8x8 RGB LED matrix having an 8 bit colour depth. A full frame of data is 3 bytes for each RGB pixel x 64 pixels = 192 bytes. I then add a start and end data marker byte which takes the total data size to 194 bytes. Ideally I want this all to fit in the I2C buffer so I can send it in one go.
I have tried upping the buffer size values in the following files in the Arduino IDE to 64 bytes as a test, and it worked.
Java/libraries/Wire/utility/twi.h define TWI_BUFFER_LENGTH 64
define BUFFER_LENGTH 64
However if I up them to my ideal of 194 I get strange results - e.g. output to the serial console is truncated, as if I am writing into some other part of memory I should't be.
Is there a way to up these values to 194, or do I need to split the data into multiple I2C transmissions, e.g. for Red Green and Blue data?