* @param receive_length The number of bytes to wait for from the slave. Can be zero.
* @return An array ready for sending in an i2c_io message.
*/
public static UInt8MultiArray createI2CPackage(byte address, byte token,
byte[] data, int receive_length) {
UInt8MultiArray i2c_io_data = new UInt8MultiArray();
i2c_io_data.data = new byte[3 + data.length];
i2c_io_data.data[0] = address;
i2c_io_data.data[1] = (byte)receive_length;
i2c_io_data.data[2] = token;
System.arraycopy(data, 0, i2c_io_data.data, 3, data.length);