Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
329
S1D13700_Display_TxtLayer
S1D13700_Set_Cursor
Prototype
sub procedure S1D13700_Display_TxtLayer(dim mode as byte)
Returns
Nothing.
Description Display selected text layer.
Parameters: 
mode
: text layer mode. Valid values: 
Requires
Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
‘ Display on text layer
S1D13700_Display_TxtLayer(S1D13700_LAYER_ON)
Prototype
sub  procedure  S1D13700_Set_Cursor(dim  width  as  byte,  dim  height  as  byte, 
dim mode as byte)
Returns
Nothing.
Description Sets cursor properties.
Parameters:
width
: in pixels-1 (must be less than or equal to the horizontal char size). 
height
: in lines-1 (must be less than or equal to the vertical char size). 
mode
: cursor mode. Valid values: 
Requires
Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
‘ set cursor with the following properties : width 5px, height 10px, cursor 
shape - block
S1D13700_Set_Cursor(5, 10, S1D13700_CURSOR_BLOCK)
Value
Description
S1D13700_LAYER_OFF
Turn off graphic layer.
S1D13700_LAYER_ON
Turn on graphic layer.
S1D13700_LAYER_FLASH_2Hz
Turn on graphic layer and flash it at the rate of 2 Hz.
S1D13700_LAYER_FLASH_16Hz
Turn on graphic layer and flash it at the rate of 16 Hz.
Value
Description
S1D13700_CURSOR_UNDERSCORE
Set cursor shape - underscore.
S1D13700_CURSOR_BLOCK
Set cursor shape - block.