loading...
LCD DISPLAY FUNCTION COMMANDS
Move Cursor Command
Description: This command sends the cursor to the specified location. The location limitation depends on the LCD type used, and the configuration in EEPROM.
| Syntax | 0×80 <line#> <character#> | |
| Parameters | Length | Description |
| Line | 1 | 1-4 based on LCD configuration |
| Character | 1 | 1-40 based on LCD configuration |
| Remembered | N/A | |
| Default | N/A | |
Initialize Horizontal Bar Graph
Description: This command initializes the horizontal bar graph. This function must be called prior to attempting to display any horizontal bar graphs
| Syntax | 0×81 <type> | |
| Parameters | Length | Description |
| Type | 1 | 0×00 – Initializes hollow bar graph
0×01 – Initializes filled bar graph |
| Remembered | No. Effective only during the same power cycle. Is overwritten and needs to be executed again if the vertical bar graph initialization or the custom character initialization commands are called during the same cycle. | |
| Default | Not initialized | |
Initialize Vertical Bar Graph
Description: This command initializes the vertical bar graph. This function must be called prior to attempting to display any vertical bar graphs
| Syntax | 0×82 <type> | |
| Parameters | Length | Description |
| Type | 1 | 0×00 – Initializes hollow bar graph
0×01 – Initializes filled bar graph |
| Remembered | No. Effective only during the same power cycle. Is overwritten and needs to be executed again if the horizontal bar graph initialization or the custom character initialization commands are called during the same cycle. | |
| Default | Not initialized | |
Display Horizontal Bar Graph
Description: This command displays the horizontal bar graph. This function must be called after the initialization of the horizontal bar graph.
| Syntax | 0×83 <line> <character> <max characters> <value> | |
| Parameters | Length | Description |
| Line | 1 | Line where the horizontal bar graph will start. 1-4 based on LCD configuration. |
| Character | 1 | Character where the horizontal bar graph will start. 1-40 based on LCD configuration |
| Max Characters | 1 | Span of the horizontal bar graph in number of characters. Cannot exceed the maximum number of characters per line of the LCD. |
| Value | 1 | Number of pixels for the horizontal bar graph. |
| Remembered | N/A | |
| Default | N/A | |
The module supports 5 x 8 pixels per characters. The horizontal bar graph utilizes the 5 x character to define the value displayed.
Example: Sending 0xFE 0×83 0×04 0×01 0×04 0×11 will display a horizontal bar graph starting on line 4, character 1, and spanning until line 4, character 4. The maximum number of steps would then be 5pixels/character * 4 characters = 20
The last byte sets the value at 17 out of 20.
Display Vertical Bar Graph
Description: This command displays the vertical bar graph. This function must be called after the initialization of the vertical bar graph.
| Syntax | 0×84 <line> <character> <max characters> <value> | |
| Parameters | Length | Description |
| Line | 1 | Line where the vertical bar graph will start. 1-4 based on LCD configuration. |
| Character | 1 | Character where the vertical bar graph will start. 1-40 based on LCD configuration |
| Max Characters | 1 | Span of the vertical bar graph in number of characters. Cannot exceed the maximum number of lines of the LCD. |
| Value | 1 | Number of pixels for the vertical bar graph. |
| Remembered | N/A | |
| Default | N/A | |
The module supports 5 x 8 pixels per characters. The vertical bar graph utilizes the 8 x character to define the value displayed.
Example: Sending 0xFE 0×84 0×04 0×01 0×03 0×11 will display a vertical bar graph starting on line 4, character 1, and spanning until line 3, character 1. The maximum number of steps would then be 8pixels/character * 3 characters = 24
The last byte sets the value at 17 out of 24.
Load Custom Character
Description: This command loads the LCD memory with up to 8 custom characters.
| Syntax | 0×85 <memory location> <byte1> <byte2> … <byte8> | |
| Parameters | Length | Description |
| Memory location | 1 | Location to store custom character in. Values are 0-7 |
| Custom character | 8 | 8 bytes of custom character |
| Remembered | No. Effective only during the same power cycle. Is overwritten and needs to be executed again if the vertical bar graph initialization or the horizontal character initialization commands are called during the same cycle. | |
| Default | Blank | |
Refer to the HD44780 datasheet for more details about generating custom characters.
Display Custom Character
Description: This command displays a previously saved custom character.
| Syntax | 0×86 <memory location> | |
| Parameters | Length | Description |
| Memory location | 1 | Location to display custom character from |
| Remembered | N/A | |
| Default | N/A | |
Refer to the HD44780 datasheet for more details about generating custom characters.
loading...
English
French
German
Spanish
Russian