User manual
561
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
SPI_T6963C_cursor_blink
Prototype
procedure SPI_T6963C_cursor_blink(n : 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 EasydsPIC4A board and dsPIC30F4013.
Copy Code To Clipboard
program SPI_T6963C_240x128;
uses __Lib_SPIT6963C_Const;
var
// Port Expander module connections
SPExpanderRST : sbit at LATF0_bit; // for writing to output pin always use latch
(PIC18 family)
SPExpanderCS : sbit at LATF1_bit; // for writing to output pin always use latch
(PIC18 family)
SPExpanderRST_Direction : sbit at TRISF0_bit;
SPExpanderCS_Direction : sbit at TRISF1_bit;
// End Port Expander module connections
var panel : byte; // current panel
i : word; // general purpose register
curs : byte; // cursor visibility
cposx,
cposy : word; // cursor x-y position
txt, txt1 : string[29];
begin
txt1 := ‘ EINSTEIN WOULD HAVE LIKED mE’;
txt := ‘ GLCD LIBRARY DEMO, WELCOME !’;
{$DEFINE COMPLETE_EXAMPLE}// comment this line to make simpler/smaller example
ADPCFG := 0xFFFF; // initialize AN pins as digital
TRISB8_bit := 1; // Set RB8 as input
TRISB9_bit := 1; // Set RB9 as input