Visible to Intel only — GUID: iga1401317714845
Ixiasoft
Visible to Intel only — GUID: iga1401317714845
Ixiasoft
27.3.2. Displaying Characters on the LCD
The buffer is scrolled up as soon as a printable character is written onto the line below the bottom of the buffer. Rows do not scroll as soon as the cursor moves down to allow the maximum useful information in the buffer to be displayed.
If the visible characters in the buffer fit on the display, all characters are displayed. If the buffer is wider than the display, the display scrolls horizontally to display all the characters. Different lines scroll at different speeds, depending on the number of characters in each line of the buffer.
The LCD driver supports a small subset of ANSI and VT100 escape sequences that can be used to control the cursor position, and clear the display as shown below.
Sequence | Meaning |
---|---|
BS (\b) | Moves the cursor to the left by one character. |
CR (\r) | Moves the cursor to the start of the current line. |
LF (\n) | Moves the cursor to the start of the line and move it down one line. |
ESC ( (\x1B) | Starts a VT100 control sequence. |
ESC [ <y> ; <x> H | Moves the cursor to the y, x position specified – positions are counted from the top left which is 1;1. |
ESC [ K | Clears from current cursor position to end of line. |
ESC [ 2 J | Clears the whole screen. |
The LCD controller is an output-only device. Therefore, attempts to read from it returns immediately indicating that no characters have been received.
The LCD controller drivers are not included in the system library when the Reduced device drivers option is enabled for the system library. If you want to use the LCD controller while using small drivers for other devices, add the preprocessor option—DALT_USE_LCD_16207 to the preprocessor options.