Mikroelektronika MIKROE-442 데이터 시트
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
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.