User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
555
void main() {
#dene COMPLETE_EXAMPLE
#dene LINE_DEMO // Uncomment to demonstrate line drawing routines
#dene FILL_DEMO // Uncomment to demonstrate ll routines
#dene PARTIAL_IMAGE_DEMO // Uncomment to demonstrate partial image routine
char txt1[] = “ EINSTEIN WOULD HAVE LIKED mE”;
char txt[] = “ GLCD LIBRARY DEMO, WELCOME !”;
char txt2[] = “Partial image demo!”;
unsigned char panel; // Current panel
unsigned int i; // General purpose register
unsigned char curs; // Cursor visibility
unsigned int cposx, cposy; // Cursor x-y position
CHECON = 0x32;
AD1PCFG = 0xFFFF;
TRISB8_bit = 1; // Set RB8 as input
TRISB9_bit = 1; // Set RB9 as input
TRISB10_bit = 1; // Set RB10 as input
TRISB11_bit = 1; // Set RB11 as input
TRISB12_bit = 1; // Set RB12 as input
TRISB13_bit = 1; // Set RC13 as input
T6963C_ctrlce_Direction = 0;
T6963C_ctrlce = 0; // Enable T6963C
T6963C_ctrlfs_Direction = 0;
T6963C_ctrlfs = 0; // Font Select 8x8
T6963C_ctrlmd_Direction = 0;
T6963C_ctrlmd = 0; // Column number select
// Initialize T6963C
T6963C_init(240, 128, 8);
/*
* Enable both graphics and text display at the same time
*/
T6963C_graphics(1);
T6963C_text(1);
panel = 0;
i = 0;
curs = 0;
cposx = cposy = 0;
/*
* Text messages
*/
T6963C_write_text(txt, 0, 0, T6963C_ROM_MODE_XOR);
T6963C_write_text(txt1, 0, 15, T6963C_ROM_MODE_XOR);