Mikroelektronika MIKROE-724 データシート

ページ / 726
584
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
T6963C_cursor_blink
Prototype
sub procedure 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 the T6963C_init routine.
Example
‘ enable cursor blinking 
T6963C_cursor_blink(1)
Notes
None.
Library Example
The  following  drawing  demo  tests  advanced  routines  of  the  T6963C  Glcd  library.  Hardware  configurations  in  this 
example are made for the EasydsPIC4A board and dsPIC30F4013.
Copy Code To Clipboard 
program T6963C_240x128
include __Lib_T6963C_Consts
‘ T6963C module connections
dim T6963C_dataPort as byte at PORTB                       ‘ DATA port
dim T6963C_ctrlwr  as sbit at LATF2_bit                    ‘ WR write signal
dim T6963C_ctrlrd  as sbit at LATF1_bit                    ‘ RD read signal
dim T6963C_ctrlcd  as sbit at LATF0_bit                    ‘ CD command/data signal
dim T6963C_ctrlrst as sbit at LATF4_bit                    ‘ RST reset signal
dim T6963C_ctrlwr_Direction  as sbit at TRISF2_bit         ‘ WR write signal direction
dim T6963C_ctrlrd_Direction  as sbit at TRISF1_bit         ‘ RD read signal direction
dim T6963C_ctrlcd_Direction  as sbit at TRISF0_bit  ‘ CD command/data signal direction
dim T6963C_ctrlrst_Direction as sbit at TRISF4_bit  ‘ RST reset signal direction
‘ Signals not used by library, they are set in main function
dim T6963C_ctrlce as sbit at LATF3_bit                     ‘ CE signal
dim T6963C_ctrlfs as sbit at LATF6_bit                     ‘ FS signal
dim T6963C_ctrlmd as sbit at LATF5_bit                     ‘ MD signal
dim T6963C_ctrlce_Direction as sbit at TRISF3_bit          ‘ CE signal direction
dim T6963C_ctrlfs_Direction as sbit at TRISF6_bit          ‘ FS signal direction
dim T6963C_ctrlmd_Direction as sbit at TRISF5_bit          ‘ MD signal direction
‘ End T6963C 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