User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
533
for(;;) { // Endless loop
/*
* If RB8 is pressed, display only graphic panel
*/
if(RB8_bit) {
SPI_T6963C_graphics(1);
SPI_T6963C_text(0);
Delay_ms(300);
}
#ifdef COMPLETE_EXAMPLE
/*
* If RB9 is pressed, toggle the display between graphic panel 0 and graphic panel 1
*/
else if(RB9_bit) {
panel++;
panel &= 1;
SPI_T6963C_displayGrPanel(panel);
Delay_ms(300);
}
#endif
/*
* If RB10 is pressed, display only text panel
*/
else if(RB10_bit) {
SPI_T6963C_graphics(0);
SPI_T6963C_text(1);
Delay_ms(300);
}
/*
* If RB11 is pressed, display text and graphic panels
*/
else if(RB11_bit) {
SPI_T6963C_graphics(1);
SPI_T6963C_text(1);
Delay_ms(300);
}
/*
* If RB12 is pressed, change cursor
*/
else if(RB12_bit) {
curs++;
if(curs == 3) curs = 0;
switch(curs) {
case 0:
// no cursor
SPI_T6963C_cursor(0);
break;
case 1:
// blinking cursor