Hi guys, I need help with one of the I2C functions.
I want to have an I2C write function that can write a packet of bytes instead of one byte data. Anyone did that before?..
Having problems writing the I2C_write_packet(two arguments passed)
Example:
buffer[2];
buffer[0] = 0xF0; (an address for a command)
buffer[1] = 0xFE; (another address for a command)
I2C_write_packet(buffer,2); (2 is the length of the array)
I want to have an I2C write function that can write a packet of bytes instead of one byte data. Anyone did that before?..
Having problems writing the I2C_write_packet(two arguments passed)
Example:
buffer[2];
buffer[0] = 0xF0; (an address for a command)
buffer[1] = 0xFE; (another address for a command)
I2C_write_packet(buffer,2); (2 is the length of the array)