Table of Contents

Graphic LCD

Related to: [HW] User Interface Module

This library contains functions to use the HomeLab graphical LCD. Although the LCD is capable of displaying graphical images, no such functions are implemented in the library. The LCD is used as a 14 x 6 character alphanumeric display.

Functions

Intializes LCD.

Switch LCD backlight on or off. Parameters:

Clears a whole display.

Clears a single text line. Parameters:

Selects a position to write text to. Parameters:

Writes a character to the pre-defined position. Parameters:

Writes a string to the display starting from the pre-defined position. Parameters:

Example

Demonstration of using a graphical LCD.

#include <homelab/module/lcd_gfx.h>
 
int main(void)
{
	// LCD initialization.
	lcd_gfx_init();
 
	// Display clearing.
	lcd_gfx_clear();
 
	// Cursor to the middle of the screen.
	lcd_gfx_goto_char_xy(5, 2);
 
	// Displaying a text.
	lcd_gfx_write_string("Hello");
}