here is a less trivial example of power of pseudo variables...
On glcd if using double size characters you need to automatically
adjust linespacing and character spaceing.
Actually also if character is NOT y%8 position you have to write the
bits of it one at a time and not 8 bit column at a time.
procedure LCD_double'put (bit in isWide) is
if LCD_state_double != isWide then -- only change spacing if
character size changes.
if isWide then
LCD_charSpace = LCD_charSpace *2
LCD_lineSpace = LCD_lineSpace *2
else
LCD_charSpace = LCD_charSpace /2
LCD_lineSpace = LCD_lineSpace /2
end if
LCD_state_double = isWide
end if
end procedure
function LCD_double'get ()return bit is
return LCD_state_double
end function
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.