LCD0821 rev 2
24
Command Syntax
Default
Notes
Underline cursor off
FE 4B
254 75
254 'K'
R
Turns off the underline cursor.
Block cursor on
FE 53
254 83
254 'S'
on
Turns on the blinking block cursor.
Block cursor off
FE 54
254 84
254 'T'
Turns off the blinking block cursor.
Cursor left
FE 4C
254 76
254 'L'
Moves the cursor one position to the left. If the
cursor is already at the beginning of a line it will
move to the end of the other line.
Cursor right
FE 4D
254 77
254 'M'
Moves the cursor one position to the right. If the
cursor is already at the end of a line it will move
to the beginning of the other line.
6.5 Bar Graphs and Special Characters
The commands in this section are used to define and display bar graphs and special characters.
Table 6-2 Bar Graph and Special Character Commands
Command Syntax
Notes
Initialize thick vertical
bar graph
FE 76
254 118
254 'v'
Initializes the user character set to make wide vertical bar
graphs.
Initialize thin vertical
bar graph
FE 73
254 115
254 's'
Initializes the user character set to make narrow vertical bar
graphs.
Initialize horizontal
bar graph
FE 68
254 104
254 'h'
Initializes the user character set to make horizontal bar
graphs.
Draw vertical bar
graph
FE 3D [col][length]
254 61 [col][length]
254 '=' [col][length]
Draws a vertical bar graph at column [col] of length [length].
Length is measured in pixels (0x00 to 0x20). User must first
use the 'v' or 's' command to initialize characters.
Draw horizontal bar
graph
FE 7C [c][r][d][length]
254 124 [c][r][d][length]
254 '|' [c][r][d][length]
Draws a horizontal bar graph starting at column [c] on row [r]
with direction [d] (0 is right, 1 is left) of length [length]. Length
is measured in pixels (0x00 to 0x64 if starting in column 1).
User must first use the 'h' command to initialize characters.
Define custom
character
FE 4E [c][8 bytes]
254 78 [c][8 bytes]
254 'N' [c][8 bytes]
Defines one of 8 custom "user" characters. Character
number is [c] between 0x00 and 0x07. The 8 bytes are
described in section 4.1.6.
electronic components distributor