OakGraphics
08-09-2005, 03:16 AM
Howdy Gang,
I am working with a serial to parallal lcd controller from Peter H. Anderson's website:
http://www.phanderson.com/lcd106/lcd108.html
·- actually I have the kit from the Australian company that made a pcb for it at:
http://www.oatleyelectronics.com/kits/k221.html
Together with the lcd I picked up on ebay - I have a working 4x20 serial lcd for less then 25$.
As for the kit - it does work, but I would probably use either a more packaged serial lcd, or opt for just using the lcd in parallal in the future (and opting for a basic stamp or SX with higher i/o pins to accomidate the loss of pins for parallal)
either way - it works for the most part, but I am having a little difficulty with the backlight command.
basically it accepts a parameter in 2 digit hex - but the hex must be in lower case.
THe problem is the BS2 HEX command translates to·UPPER CASE·values only. http://forums.parallax.com/images/smilies/rolleyes.gif
To demonstrate this -·here is a·quick program:
' {$STAMP BS2}
' {$PBASIC 2.5}
dimmer·VAR·Byte
Main:
····· FOR dimmer = 250 TO 255······
····· DEBUG HEX dimmer, CR
NEXT
end
the debug terminal output would look like:
FA
FB
FC
FD
FE
FF
(i.e. all uppercase)
is there a way to generate hex values in lower case? I could probably do it by comparing the high and low nibble and replacing them with lowercase versions for the letters I guess. :-?
·
I am working with a serial to parallal lcd controller from Peter H. Anderson's website:
http://www.phanderson.com/lcd106/lcd108.html
·- actually I have the kit from the Australian company that made a pcb for it at:
http://www.oatleyelectronics.com/kits/k221.html
Together with the lcd I picked up on ebay - I have a working 4x20 serial lcd for less then 25$.
As for the kit - it does work, but I would probably use either a more packaged serial lcd, or opt for just using the lcd in parallal in the future (and opting for a basic stamp or SX with higher i/o pins to accomidate the loss of pins for parallal)
either way - it works for the most part, but I am having a little difficulty with the backlight command.
basically it accepts a parameter in 2 digit hex - but the hex must be in lower case.
THe problem is the BS2 HEX command translates to·UPPER CASE·values only. http://forums.parallax.com/images/smilies/rolleyes.gif
To demonstrate this -·here is a·quick program:
' {$STAMP BS2}
' {$PBASIC 2.5}
dimmer·VAR·Byte
Main:
····· FOR dimmer = 250 TO 255······
····· DEBUG HEX dimmer, CR
NEXT
end
the debug terminal output would look like:
FA
FB
FC
FD
FE
FF
(i.e. all uppercase)
is there a way to generate hex values in lower case? I could probably do it by comparing the high and low nibble and replacing them with lowercase versions for the letters I guess. :-?
·