Hardware Reference
In-Depth Information
In the preceding example, there are two statements that interface with the graphical dis-
play:
•
lcd.LCD-clear();
: This statement initializes and clears the LCD.
•
lcd.LCD_write_string(MENU_X, MENU_Y, "test screen",
MENU_HIGHLIGHT)
: This function writes the
test screen
string to the dis-
play. The
MENU_X
and
MENU_Y
variables set where the string will be written and
the
MENU_HIGHLIGHT
variable causes the string to be in the highlight mode
(with a black background and light text).
Here is what the display should look like while running this function: