Datasheet

{*
* If PORTA_0 is pressed, toggle the display between graphic
panel 0 and graphic 1
*}
if( PINA0_bit = 0) then
begin
Inc(panel) ;
panel := panel and 1;
T6963C_setPtr((T6963C_grMemSize + T6963C_txtMemSize) *
panel, T6963C_GRAPHIC_HOME_ADDRESS_SET) ;
Delay_ms(300) ;
end
{*
* If PORTA_1 is pressed, display only graphic panel
*}
else
if ( PINA1_bit = 0) then
begin
T6963C_graphics(1) ;
T6963C_text(0) ;
Delay_ms(300) ;
end
{*
* If PORTA_2 is pressed, display only text panel
*}
else
if ( PINA2_bit = 0) then
begin
T6963C_graphics(0) ;
T6963C_text(1) ;
Delay_ms(300) ;
end
{*
* If PORTA_3 is pressed, display text and graphic panels
*}
else
if ( PINA3_bit = 0) then
begin
T6963C_graphics(1) ;
T6963C_text(1) ;
Delay_ms(300) ;
end
{*
* If PORTA_4 is pressed, change cursor
*}
470
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6