Mikroelektronika MIKROE-724 データシート

ページ / 726
552
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
SPI_T6963C_write_text
Prototype
sub  procedure  SPI_T6963C_write_text(dim  byref  str  as  byte[10],  dim  x,  y, 
mode as byte)
Description Writes text in the current text panel of Glcd at coordinates (x, y).
Parameters 
str
: text to be written 
x
: text position on x-axis 
y
: text position on y-axis 
mode
: mode parameter. Valid values: SPI_T6963C_ROM_MODE_OR, SPI_T6963C_ROM_MODE_
XOR, SPI_T6963C_ROM_MODE_AND and SPI_T6963C_ROM_MODE_TEXT 
Mode parameter explanation: 
- OR Mode: In the OR-Mode, text and graphics can be displayed and the data is logically “OR-ed”. This 
is the most common way of combining text and graphics for example labels on buttons. 
- XOR-Mode: In this mode, the text and graphics data are combined via the logical “exclusive OR”. 
This can be useful to display text in negative mode, i.e. white text on black background. 
- AND-Mode: The  text  and  graphic  data  shown  on  the  display  are  combined  via  the  logical  “AND 
function”. 
- TEXT-Mode: This option is only available when displaying just a text. The Text Attribute values are 
stored in the graphic area of display memory. 
For more details see the T6963C datasheet. 
Returns
Nothing.
Requires
Toshiba Glcd module needs to be initialized. See SPI_T6963C_Config routine.
Example
SPI_T6963C_write_text(“GLCD LIBRARY DEMO, WELCOME !”, 0, 0, SPI_T6963C_ROM_
MODE_XOR)
Notes
None.
SPI_T6963C_line
Prototype
sub procedure SPI_T6963C_line(dim x0, y0, x1, y1 as integer, dim pcolor as 
byte)
Description Draws a line from (x0, y0) to (x1, y1).
Parameters 
x0
: x coordinate of the line start 
y0
: y coordinate of the line end 
x1
: x coordinate of the line start 
y1
: y coordinate of the line end 
pcolor
: color parameter. Valid values: SPI_T6963C_BLACK and SPI_T6963C_WHITE  
Returns
Nothing.
Requires
Toshiba Glcd module needs to be initialized. See SPI_T6963C_Config routine.
Example
SPI_T6963C_line(0, 0, 239, 127, SPI_T6963C_WHITE)
Notes
None.