Thank you for the component posted.
CharLCD_I2C Ver 2.0 UPGRADE : I had a chance to upgrade the DataSheet of the CharLCD_I2C Component with new Screen Shots to facilitate choosing the right Master Component and Instance name for the Master component to avoid Building and Compiling errors with the CharlCD_I2C component.
Also added to the DataSheet are instructions and screen shots on how to load the CharLCD_I2C component using the Dependency Option.
I have included a 1K Potentiometer to the circuit diagram to be able to adjust the brightness of the Back Lighting.
I have made minor changes to ta few of the comment sections of version 2.0 of the CharLCD_I2C Component but otherwise the code is unchanged from the last version.
Disconnecting and Reconnecting the LCD Display:
I included the necessary Code in the main.c file of the Example Demo's making it possible to disconnect the LCD Display then re-initializing the LCD Display when reconnected without having to reset or power off and on the PSocC chip.
I am using a Sain Smart 20x4 IIC/I2C/TWI LCD module ($15) with your code. In order to make that work the data delay has to be increased to 1ms from 500us, that is in CharLCD_I2C.h change #define CharLCD_DATA_DELAY_US (1000u)
Thanks for sharing your project!
Re: PSoC3, PSoC4 & PSoC5 Character LCD_I2C 4_bit Mode v2.1
Implements I2C Interface with the PCF8574AT I2C BackPack connected to the Industry Standard Hitachi HD44780 LCD controller in 4-bit Mode designed for the Arduino (LCD 1602, 1604, 2004).
Thanks for the feedback, modified software to increase the DATA_DELAY from 0.5 msec to 1.0 msec to occur during the build process so as not to have to make changes in the CharLCD_I2C.h file.
CharLCD_I2C_v2_1.cylib.zip 1.3 MB
1 of 1 people found this helpful
CharLCD_I2C Component provides software interface for the PSoC3, PSoC4 and PSoC5 with the Sain Smart 20x4 IIC/I2C/TWI LCD module and the PCF8574AT connected to the HDHD44780 LCD controller designed for the Arduino (LCD 1602, 1604, 2004)
I have provided updated Examples for the CY8CKIT-042 and CY8CKIT-059 that includes the external circuit schematic for connecting the PSoC4 or PSoC5 Kits to the LCD.
If it is necessary to disconnect and re-connect the LCD, I have included the needed code to avoid having to reboot or power off and on the PSoC to re-initialize the LCD. The :sda and :scl outputs need to be connected to pull up resistors for the code to work properly.