I have been trying for a number of hours to get my GLK12232-25-WBL working with I2C using a PIC16F877A and PicBASIC Pro. The device works fine using serial communication with the computer. The default address is 0x50. I have other devices working correctly on the I2C bus - but the LCD shows no signs of communication rather than the default screen.
I have tried numerous things in my code, but basically:
Code: Select all
SCL VAR PORT C.3
SDA VAR PORTC.4
I2CWRITE SDA,SCL,$FE,$50,[254,71]
I2CWRITE data, clock, control, {address,} [value], {label}
This should turn off the backlight. I have tried clearing the screen, sending text, etc. I have tried to change the "control" from $FE to all sorts of things. The address should be fine, but I have tried changing that as well. Does anyone have working PBP code to talk to this device in I2C?
Thank you in advance.