User manual
mikroBasic PRO for PIC32
MikroElektronika
505
while TRUE ‘ Endless loop
‘*
‘* If RB8 is pressed, toggle the display between graphic panel 0 and graphic 1
‘*
if( RB8_bit <> 0) then
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)
‘*
‘* If RB9 is pressed, display only graphic panel
‘*
else
if ( RB9_bit <> 0) then
SPI_T6963C_graphics(1)
SPI_T6963C_text(0)
Delay_ms(300)
‘*
‘* If RB10 is pressed, display only text panel
‘*
else
if ( RB10_bit <> 0) then
SPI_T6963C_graphics(0)
SPI_T6963C_text(1)
Delay_ms(300)
‘*
‘* If RB11 is pressed, display text and graphic panels
‘*
else
if ( RB11_bit <> 0) then
SPI_T6963C_graphics(1)
SPI_T6963C_text(1)
Delay_ms(300)
‘*
‘* If RB12 is pressed, change cursor
‘*
else
if( RB12_bit <> 0) then
Inc(curs)
if (curs = 3) then
curs = 0
end if
select case curs
case 0
‘ no cursor
SPI_T6963C_cursor(0)