Mikroelektronika MIKROE-442 Datenbogen

Seite von 726
330
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
S1D13700_Display_Cursor
S1D13700_Write_Char
Prototype
sub procedure S1D13700_Display_Cursor(dim mode as byte)
Returns
Nothing.
Description Displays cursor.
Parameters:
mode
: mode parameter. Valid values: 
Requires
Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
‘ set cursor on
S1D13700_Display_Cursor(S1D13700_CURSOR_ON)
Prototype
sub procedure S1D13700_Write_Char(dim c as char, dim x as word, dim y as 
word, dim mode as byte)
Returns
Nothing.
Description Writes a char in the current text layer of Glcd at coordinates (x, y).
Parameters:
c
: char to be written. 
x
: char position on x-axis (column). 
y
: char 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_Char(“A”,22,23,S1D13700_OVERLAY_OR)
Value
Description
S1D13700_CURSOR_OFF
Turn off graphic layer.
S1D13700_CURSOR_ON
Turn on graphic layer.
S1D13700_CURSOR_FLASH_2Hz
Turn on graphic layer and flash it at the rate of 2 Hz.
S1D13700_CURSOR_FLASH_16Hz
Turn on graphic layer and flash it at the rate of 16 Hz.
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”.