User manual
mikroBasic PRO for PIC32
MikroElektronika
501
SPI_T6963C_cursor
SPI_T6963C_cursor_blink
Prototype
sub procedure SPI_T6963C_cursor(dim n as word)
Description Set cursor on/off.
Parameters - n: on/off parameter. Valid values: 0 (set cursor off) and 1 (set cursor on).
Returns Nothing.
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Cong routine.
Example
‘ set cursor on
SPI_T6963C_cursor(1)
Notes None.
Prototype
sub procedure SPI_T6963C_cursor_blink(dim n as word)
Description Enable/disable cursor blinking.
Parameters - n: cursor blinking enable/disable parameter. Valid values: 0 (disable cursor blinking) and 1 (enable
cursor blinking).
Returns Nothing.
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Cong routine.
Example
‘ enable cursor blinking
SPI_T6963C_cursor_blink(1)
Notes None.
Library Example
The following drawing demo tests advanced routines of the SPI T6963C Glcd library. Hardware congurations in this
example are made for the LV-32MX v6 board and PIC32MX460F512L.
Copy Code To Clipboard
program SPI_T6963C_240x128
include __Lib_SPIT6963C_Const
dim
‘ Port Expander module connections
SPExpanderRST as sbit at LATD8_bit ‘ for writing to output pin always use latch
SPExpanderCS as sbit at LATD9_bit ‘ for writing to output pin always use latch
SPExpanderRST_Direction as sbit at TRISD8_bit
SPExpanderCS_Direction as sbit at TRISD9_bit
‘ End Port Expander module connections
dim panel as byte ‘ current panel
i as word ‘ general purpose register
curs as byte ‘ cursor visibility
cposx,
cposy as word ‘ cursor x-y position
txt, txt1 as string[29]