LK204-25-GW
Posted: Tue Nov 18, 2008 10:37 pm
Hi there!
Is there an example on how to send a string or even a character to the LCD using I2C? I've got my hardware set up with the pull-up resistors as specified, but I'm clueless about the software issue involved..I'm not a programmer and reading the I2c stuff confuses the heck out of me
So far I got this:
#define W_addr 0x50; //lsb is to write to LCD
void writeI2C1(int W_addr,int data)
{
startI2C1(); //starts I2C
putI2C1(W_addr); //writes address 0x50;
putI2C1(data); // if data is 65 (A in ascii)...will it print A?
stopI2C1();
}
Is this right to send one byte or one character?
also, I don't use the keypad, so do I need to worry about reading?
Thanks
Is there an example on how to send a string or even a character to the LCD using I2C? I've got my hardware set up with the pull-up resistors as specified, but I'm clueless about the software issue involved..I'm not a programmer and reading the I2c stuff confuses the heck out of me

So far I got this:
#define W_addr 0x50; //lsb is to write to LCD
void writeI2C1(int W_addr,int data)
{
startI2C1(); //starts I2C
putI2C1(W_addr); //writes address 0x50;
putI2C1(data); // if data is 65 (A in ascii)...will it print A?
stopI2C1();
}
Is this right to send one byte or one character?
also, I don't use the keypad, so do I need to worry about reading?
Thanks
