Remote-processing BASIC 52 Uživatelský manuál Strana 50

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 163
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 49
RPBASIC-52 PROGRAMMING GUIDE
2-31
(row,col,[,cursor]) positions the cursor and, optionally, turns it ON or OFF. This option affects the character
cursor position only. The row and collum alw ays start at 0,0, which is the upper left corner of the screen. If
row or col exceed the displays limits, a B AD ARGU MENT error is returned. Th e optional cursor is turned
on or off using ON or OFF.
DISPLAY (1,5)
DISPLAY (2,0,OFF)
data is byte information written to the display. Functionally, it is equivalent to CHR$(n) found in other
Basics. data can be used to control additional features of a display not normally available. For example, the
vacuum florescent display brig htness can be dimm ed to m inimum by exec uting D ISPLAY 28.
NOTE: data does not update cursor position. The display may act 'unusual' when printing characters or
strings. The best way to solve this problem is to position the cursor before resuming string displaying.
NOTE: data should not be used with the graphics display. Character values are offset by 20H. For example,
the ASCII v alue fo r 'A' is 41H . The so ftware subtracts 20H from this num ber before sending it to the d isplay .
CR simply positions the cursor at the beginning of the current line.
DISPLAY CR
The following options are valid on the LCD5003 display only.
LINE draws a line on a graphics display. Its syntax is:
DISPLAY LINE (x1,y1)-(x2,y2)
Where: x1,x2 = 0 to 159
y1,y2 = 0 to 127
The L INE option is optim ized for high sp eed. However, nearly ve rtical lin es will take m uch longer to draw .
A line is erased using the CLEAR DISPLAY LINE (x1,y1)-(x2,y2) command.
P puts a single point to a graphics display. Its syntax is:
DISPLAY P(x,y)
Where: x = 0 to 159
y = 0 to 127
These values are valid for LCD5003 display only.
A line is erased using the CLEAR DISPLAY P(x,y) command.
ON enables character, graphics, or both displays. Three syntaxes possible are:
DISPLAY ON Turns on both character and graphics displays.
DISPLAY ON G Turns on graphic display only.
DISPLAY ON C Turns on character display only.
Power on default is both graphics and character display ON. Turning on character or graphic does not affect
the other. In other words, you could turn the character display ON and OFF without affecting the graphics
display.
OFF disables character, graphics or both displays. Three syntaxes possible are:
Zobrazit stránku 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 162 163

Komentáře k této Příručce

Žádné komentáře