Custom LCD Driver
Chad George
Posts: 138
I'm trying to write an LCD driver for a small graphical (128 x 64) LCD. I have all of the interface
stuff worked out, but I'm having alot of problems using graphics.spin. I've looked in the demo files
and can't seem to figure out the data format that graphics.spin packs its bitmap into. I thought I read that
it uses 16 + 1 longs for each 16 x 16 pixel tile, but I tried various ways to access this data with no
success.
Basically, I need a formula for getting the color value at pixel (not tile) location x,y using only the
base_address given to the graphics driver.
Also if anyone has some good ideas on how to change the font (and possible tile size) to 8x8 that would
work alot better for this small of a screen.
Thanks.
Post Edited (Chad George) : 2/14/2007 7:57:31 PM GMT
stuff worked out, but I'm having alot of problems using graphics.spin. I've looked in the demo files
and can't seem to figure out the data format that graphics.spin packs its bitmap into. I thought I read that
it uses 16 + 1 longs for each 16 x 16 pixel tile, but I tried various ways to access this data with no
success.
Basically, I need a formula for getting the color value at pixel (not tile) location x,y using only the
base_address given to the graphics driver.
Also if anyone has some good ideas on how to change the font (and possible tile size) to 8x8 that would
work alot better for this small of a screen.
Thanks.
Post Edited (Chad George) : 2/14/2007 7:57:31 PM GMT
Comments
What might work best·is to make a static image that·you can display on a tv or vga monitor. Then, map it to your LCD and see what's wrong. You will at first see that·pixels are transpositioned, but the pattern will clue you into what needs to change.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.