LCD 1602 2004 Custom Character

The Integrated Circuit (IC) within the Liquid Crystal Display (LCD) contains both the Character Generator ROM (CGROM) and Character Generator RAM (CGRAM).

In the CGROM, predefined character patterns exist, each with a fixed address. These addresses facilitate easy access to these characters, essentially encompassing all the ASCII characters used in the LCD.

Conversely, the CGRAM allows users to save custom character patterns. It provides the capability to store up to 8 patterns of 5×8 dots each. These saved patterns can be accessed later by referencing the corresponding character's address.

Today, I'll demonstrate how to create a custom character in the CGRAM and display it on an LCD 1602.

You may need manually convert the value to uint8_it for lcd.write method.

change from

lcd.write(0);

to

lcd.write(byte(0)); 

RELATED ARTICLES

Leave a comment

Your email address will not be published. Required fields are marked *

Please note, comments must be approved before they are published