Specifications

Commands - 33
CLEAR DISPLAY Clears graphics and characters from display
CLEAR DISPLAY LINE Clears characters at current line
CLEAR DISPLAY LINE (x1,y1),(x2,y2) Clears graphics line
CLEAR DISPLAY P(x,y) Clears a point on a graphics screen
CLEAR DISPLAY C Clears all characters, graphics not affected
CLEAR DISPLAY G Clears all graphics, characters not affected
DISPLAY P(x,y) Prints a point at x,y
DISPLAY LINE(x1,y1),(x2,y2) Draws a line
DISPLAY OFF [type] Turns display off. type is C or G.
DISPLAY ON [type] Turns display on. type is C or G.
LINE draws l line on a graphics display. Its syntax is:
DISPLAY LINE (x1,y1),(x2,y2)
Where: x1,x2 = 0 to 159 (LCD 5003 only)
y1,y2 = 0 to 127 (LCD 5003 only)
The P parameter puts a single point to a graphics display.
A point is erased using the CLEAR DISPLAY P(x,y) command. Graphics dots in a line are cleared
using the CLEAR DISPLAY LINE command.
ON enables character, graphics, or both displays. Power on default is both graphics and character
display ON. Turning on or off the character or graphics does not affect the other. In other words,
you could turn characters on without affecting the graphics display. It is possible to update goth
graphics and character screen even if they are off.
RELATED: CONFIG DISPLAY
EXAMPLE: The example below is for the LCD–4x40 display.
Notice that all DISPLAY statements end with a semicolon so that a carriage return/line feed will not
be sent.
10 CONFIG DISPLAY &40,7,0
20 A$ = "--PRESENTING--"
30 B$ = "--------"
40 C$ = "160 Character LCD display"
50 D$ = "with LED backlighting"
60 DISPLAY (0,5) A$;
70 DISPLAY (1,14) B$;
80 DISPLAY (2,6) C$;
90 DISPLAY (3,8) D$;
100 DELAY 2
110 DISPLAY (0,0) CHR$(32,80);
120 DISPLAY (2,0) CHR$(32,80);
130 DELAY .5
140 GOTO 60
Line 10 installs the driver for the LCD–4x40 at address &40 with no visible cursor.
Lines 20 to 50 define the four strings to be printed
Lines 60 to 90 display the strings in the random access mode
Line 100 has a 2 second delay
Lines 110 and 120 erase all four lines, two at a time, by writing a strings of 80 spaces to each line.