The programming of LCD displays mainly involves writing operations to the LCD, including writing data and writing register data, as well as various instructions to control the LCD.
Write data and registers: You can use functions such as Lcd_WriteData and LCD_WriteReg to write 8-bit or 16-bit data and register data to the LCD. These functions usually involve setting specific pin states, such as chip select (CS), register select (RS), and read/write signals (R/W), and sending data through SPI or similar interfaces.
Control instructions: The LCD screen can perform various operations by sending specific control instructions, such as clearing the screen, homing the cursor, setting the display mode, switching the display, setting the CGRAM and DDRAM addresses, etc. These instructions are usually encoded in a specific format and sent to the LCD by writing data.
Hardware interface settings: When programming the LCD screen, you also need to correctly set the hardware interface, such as backlight control, power management, and other signal line settings. This may involve configuring the mode (input/output), level setting, and function selection of the GPIO pins.
