
Commands - 35
Random access mode is most commonly used when presenting data or during operator feedback.
You specify a row and column where you want the first character to be printed. The third syntax
formats the data, like the PRINT USING comma nd in other BASIC s.
LCD character display notes:
The integrated electronics within the LC D displays treat the unit as either one or two 1x80 displays.
If the lines are 40 characters long, then there are two physical lines (rows). The first has a column
range from 0 to 39, and the second line has a column range from 40 to 79. W hen more than 80
characters are written to the display in the sequential mode, the display will wrap around back to the
beginning.
If the display lines are 20 characters long, a different mode is used. The first row has a column
range from 0 to 19. Columns 20 through 39 are not used. Writing to these columns will not affect
the display. Columns 40 through 59 form the second display line, and columns 60 through 79 are
not used.
No display wrapping will occur from row 1 to row 2. This is true in both the sequential and random
access modes.
DISPLAY functions like the P RINT #10 statement. A carriage r eturn/ line feed will be appended to
the DISPLAY statement unless there is a trailing semicolon. On LCD character displays this shows
up as "garbage" characters.
Graphic C omman ds
The LCD graphics display has several com mand. Some or all of these com mands a re not available
on all cards. Refer to your hardware manual to determine if it is available.
CLEAR DISPLAY Clears graphics and characters from display
CLEAR DISPLAY LINE Clears characters at current line
CLEAR DISP LAY L INE (x1, y1),(x2, y2) Clears graphics line from x1, y1 to x2,y2
CLEAR DISP LAY 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
DISPLA Y F(x1, y1),(x2, y2) Fills rectangular area x1, y1 to x2,y2
DISPLA Y F, C(x1,y1),(x2, y2) Clears a rectangular area
DISPLA Y F, X(x1,y1), (x2,y2) Toggles, or XORs a rectangular area
DISPLA Y P(x, y) Turns on a point at x,y
DISPLA Y LINE (x1,y1), (x2,y2) Draws a line from x1,y1 to x2, y2
DISPLAY OFF [type] Turns display off. type is C or G.
DISPLAY ON [type] Turns display on. type is C or G.
Some boards have additional comm ands and XY limits. Refer to your har dware m anual for these
limits. (x1,y1) and (x2, y2) specify the coordinate points for a command.
DISPL AY LINE dr aws l line on a graphics display. Its syntax is:
DISPLA Y LINE (x1,y1), (x2,y2)
Where: x1,x2 = 0 to 159 (LCD 5003 on RPC-30 )
y1,y2 = 0 to 127 (LCD 5003 on RP C-30)
The P param eter puts a single point to a graphics display.
Comentarios a estos manuales