Datasheet
SPI_T6963C_Cursor_Blink
Library Example
The following drawing demo tests advanced routines of the SPI T6963C Glcd library. Hardware config-
urations in this example are made for the T6963C 240x128 display, EasyAVR5A board and ATmega16.
program SPI_T6963C_240x128;
uses __Lib_SPIT6963C_Const, bitmap, bitmap2;
var
// Port Expander module connections
SPExpanderRST : sbit at PORTB.B0;
SPExpanderCS : sbit at PORTB.B1;
SPExpanderRST_Direction : sbit at DDRB.B0;
SPExpanderCS_Direction : sbit at DDRB.B1;
// 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 !';
445
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure SPI_T6963C_Cursor_Blink(n : byte);
Returns Nothing.
Description
Enable/disable cursor blinking.
Parameters :
-
n: cursor blinking enable/disable parameter. Valid values: 0 (disable cursor
blinking) and 1 (enable cursor blinking).
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Config routine.
Example
// enable cursor blinking
SPI_T6963C_Cursor_Blink(1);