hello
I have find a code in mikrobasic, I would like to convert it into picbasicpro. mikrobasic uses subprocedure and subroutine, but not picbasicpro. how to convert this piece of code for example:
'********************************
sub procedure nju_addressY(dim adr as byte)
dim y as byte
' drugi chip ima offset +20
if bLcdDG = 1 then
y = adr + 20
else
y = adr
end if
' if adr >= 61 then
' y = y - 61 '// test cote : si partie droite => -61 (test dimensions: so right part = -61 )
' end if
nju_putcmd(y and 0x7F) 'nju_putcmd(0x00 or (y and 0x7F) )
end sub
'********************************
Bookmarks