Matrix Orbital LCD2041 Legacy User Manual
Page 20

4.1.4 Initialize horizontal bar graph (254 104)
This command defines the 8 special / user characters to be blocks suitable for use in drawing horizontal
bar graphs. Any previously existing definitions will be lost. Once this command has been issued, any number
of horizontal bar graphs may be drawn unless the characters are redefined by another command.
4.1.5 Draw horizontal bar graph (254 124 [column] [row] [dir] [length])
Draws a horizontal bar graph in [row] starting at [column] with a length of [length] pixels. [row] may
have a value of 0x01 or 0x02, column may range from 0x01 to 0x14 and length may be from 0x00 to 0x64 (0
to 100) if the graph can extend the full width of the screen. Each column is 5 pixels wide, as spaces between
the columns don’t count.
[dir] specifies the direction: 0x00 goes from left to right, 0x01 goes from right to left.
4.1.6 Initialize large digits (254 110)
This command defines the 8 special / user characters to be blocks suitable for use in drawing large digits.
Any previously existing definitions will be lost. Once this command has been issued, any number of large
characters may be placed until the characters are redefined by another command.
4.1.7 Place large digit 254 35 [col] [digit]
This command allows the large digits to be drawn on the display screen. Numbers of almost full display
height may be placed along side regular text on four row displays. The column number has a maximum
value which is less than the display width because the digits are all three columns wide.
Before using this command the “Initialize large digits” command must be issued to define the blocks
necessary to make up the digits. If regular text and large digits are mixed on one screen, the user should
always set the display cursor position before placing regular text because the creation of a large digit will
leave the cursor position to the bottom right of the large digit and not at the last regular text write position.
[col] can have values from 0x01 to 0x12 (1 to 18). [digit] has values from 0x00 to 0x09 (0 to 9).
4.1.8 Define custom character (254 78 [c] [8 bytes])
The display allows up to 8 user defined ’custom’ characters. These characters occupy the first 8 (0x00
to 0x07) places in the character set.
Custom characters occupy a 5x8 pixel matrix. Built in characters are 5x7: the bottom row of pixels is
normally reserved for the underline cursor. The underline cursor should be turned off if the bottom row of
pixels forms part of a custom character.
The characters are defined by issuing the command 254 78 [c] followed by 8 bytes to define the character.
[c] is the character number (0x00 to 0x07). The 8 bytes are mapped as shown below;
Matrix Orbital
LCD2041
17