User manual

mikroC PRO for dsPIC
MikroElektronika
613
/*
* If RF1 is pressed, toggle the display between graphic panel 0 and graphic panel
1
*/
else if(RB9_bit) {
panel++;
panel &= 1;
T6963C_displayGrPanel(panel);
Delay_ms(300);
}
#endif
/*
* If RF2 is pressed, display only text panel
*/
else if(RB10_bit) {
T6963C_graphics(0);
T6963C_text(1);
Delay_ms(300);
}
/*
* If RF3 is pressed, display text and graphic panels
*/
else if(RB11_bit) {
T6963C_graphics(1);
T6963C_text(1);
Delay_ms(300);
}
/*
* If RF4 is pressed, change cursor
*/
else if(RB12_bit) {
curs++;
if(curs == 3) curs = 0;
switch(curs) {
case 0:
// no cursor
T6963C_cursor(0);
break;
case 1:
// blinking cursor
T6963C_cursor(1);
T6963C_cursor_blink(1);
break;
case 2:
// non blinking cursor
T6963C_cursor(1);
T6963C_cursor_blink(0);
break;
}
Delay_ms(300);
}