User manual
586
mikoC PRO for dsPIC
MikroElektronika
SPI_T6963C_cursor
SPI_T6963C_cursor_blink
Prototype
void SPI_T6963C_cursor(unsigned int n);
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
void SPI_T6963C_cursor_blink(unsigned int n);
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 EasydsPIC3 board and dsPIC30F4013.
Copy Code To Clipboard
#include "__SPIT6963C.h"
/*
* bitmap pictures stored in ROM
*/
const code char mikroE_240x128_bmp[];
const code char einstein[];
// Port Expander module connections
sbit SPExpanderRST at LATF0_bit;
sbit SPExpanderCS at LATF1_bit;
sbit SPExpanderRST_Direction at TRISF0_bit;
sbit SPExpanderCS_Direction at TRISF1_bit;
// End Port Expander module connections
void main() {
char txt1[] = " EINSTEIN WOULD HAVE LIKED mE";
char txt[] = " GLCD LIBRARY DEMO, WELCOME !";