I2C - device and register addressing
Posted: Thu Jan 06, 2005 6:47 pm
I'm using an Lk202-25 on an embedded platform which allows me only indirect access to the I2C bus via libary functions. The write api is something like:
int i2cWrite(byte deviceAddr, byte registerAddr, byte data);
When writing text to the lk202, the lk seems to interpret the register address as display text with the result that every time I call the write function, I actually get 2 bytes of text displayed.
I have found various descriptions of the I2C protocol that conform to the API provided on my platform (e.g. http://www.robot-electronics.co.uk/htm/ ... 2c_bus.htm).
Does anyone know how I can get the LK202 to display text with this I2C driver which wants to send an internal register address as well as the device address?
TIA,
Richard
int i2cWrite(byte deviceAddr, byte registerAddr, byte data);
When writing text to the lk202, the lk seems to interpret the register address as display text with the result that every time I call the write function, I actually get 2 bytes of text displayed.
I have found various descriptions of the I2C protocol that conform to the API provided on my platform (e.g. http://www.robot-electronics.co.uk/htm/ ... 2c_bus.htm).
Does anyone know how I can get the LK202 to display text with this I2C driver which wants to send an internal register address as well as the device address?
TIA,
Richard