User manual
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
331
S1D13700_Write_Text
S1D13700_Dot
Prototype
sub procedure S1D13700_Write_Text(dim byref str as string, dim x, y as word,
dim mode as byte)
Returns Nothing.
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 (column).
- y: text position on y-axis (row).
- mode: mode parameter. Valid values:
Requires Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
S1D13700_Write_Text(‘EPSON LIBRARY DEMO, WELCOME !’, 0, 0, S1D13700_OVERLAY_OR)
Prototype
sub procedure S1D13700_Dot(dim x as word, dim y as word, dim color as
byte)
Returns Nothing.
Description Draws a dot in the current graphic panel of Glcd at coordinates (x, y).
Parameters:
- x: dot position on x-axis.
- y: dot position on y-axis.
- color: color parameter. Valid values:
Requires Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
S1D13700_Dot(50, 50, S1D13700_WHITE)
Value Description
S1D13700_OVERLAY_OR
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.
S1D13700_OVERLAY_XOR
In this mode, the text and graphics data are combined via the logical
“exclusive OR”.
S1D13700_OVERLAY_AND
The text and graphic data shown on display are combined via the logical
“AND function”.
Value Description
S1D13700_BLACK
Black color.
S1D13700_WHITE
White color.