Remote-processing CAMBASIC Manual do Utilizador Página 69

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 208
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 68
Commands - 36
A point is erased using the CLEAR DISPLAY P(x, y) command. Gr aphics dots in a line are cleared
using the CLEAR DISPLA Y 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 wor ds,
you could turn characters on without affecting the graphics display. It is possible to update the
graphics and character screen even if they are off.
Large Character Commands
Some versions of CAM BASIC pr int larger char acters. These characters are drawn as gr aphics.
DISPLAY M(x,y)"text"; Print medium size characters
DISPLAY M,R(x,y)"text"; Print medium size characters in reverse color format
DISPLAY L(x,y)"Text"; Print large size characters
DISPLAY L,R(x,y)"Text"; Print large size characters in revers color format
Medium size characters are position based on a graphical X and Y pixel position. When printing a
string, characters automatically advance to the right. X, Y coordinates specify the upper right corner
of the character block.
Large size char acter position is based on pixel and small character resolution. X position star ts
based on small character set. F or a 320 x 240 pixel display, maximum X position is 34. Y position
sets the top of the character.
Character fonts are stored in flash and may be changed. Refer to your hardware manual for more
information.
"Text" can be a number or the CH R$() com mand. Be sure to ter minate the comm and with a semi-
colon (;). Leaving it out will send a < CR> < LF> sequence (2 spaces) to the display.
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.
Vista de página 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 207 208

Comentários a estes Manuais

Sem comentários