Datasheet

'*
'* If PORTA_2 is pressed, display only text panel
'*
else
if ( PINA2_bit = 0) then
T6963C_graphics(0)
T6963C_text(1)
Delay_ms(300)
'*
'* If PORTA_3 is pressed, display text and graphic panels
'*
else
if ( PINA3_bit = 0) then
T6963C_graphics(1)
T6963C_text(1)
Delay_ms(300)
'*
'* If PORTA_4 is pressed, change cursor
'*
else
if( PINA4_bit = 0) then
Inc(curs)
if (curs = 3) then
curs = 0
end if
select case curs
case 0
' no cursor
T6963C_cursor(0)
case 1
' blinking cursor
T6963C_cursor(1)
T6963C_cursor_blink(1)
case 2
' non blinking cursor
T6963C_cursor(1)
T6963C_cursor_blink(0)
end select
Delay_ms(300)
end if
end if
end if
end if
end if
462
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6