Datasheet

while (TRUE) do // Endless loop
begin
{*
* 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;
SPI_T6963C_setPtr((SPI_T6963C_grMemSize +
SPI_T6963C_txtMemSize) * panel, SPI_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
SPI_T6963C_graphics(1) ;
SPI_T6963C_text(0) ;
Delay_ms(300) ;
end
{*
* If PORTA_2 is pressed, display only text panel
*}
else
if ( PINA2_bit = 0) then
begin
SPI_T6963C_graphics(0) ;
SPI_T6963C_text(1) ;
Delay_ms(300) ;
end
{*
* If PORTA_3 is pressed, display text and graphic panels
*}
else
if ( PINA3_bit = 0) then
begin
SPI_T6963C_graphics(1) ;
SPI_T6963C_text(1) ;
Delay_ms(300) ;
end
448
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6