Mono Graphics Driver
Chad George
Posts: 138
Has anybody made a monochrome version of the graphics driver?
I have a small 128x32 pixel graphical LCD and I was able to write a graphics.spin compatible driver for it.
I just hate wasting the memory on the 2-bit tiled memory buffer.
I'm pretty sure I can hack graphics.spin so that it uses 32x16 pixel monochrome tiles instead of the 2bit color tiles.
Maybe there isn't a big demand for this, but I didn't want to duplicate the effort if someone else has already done it.
I have a small 128x32 pixel graphical LCD and I was able to write a graphics.spin compatible driver for it.
I just hate wasting the memory on the 2-bit tiled memory buffer.
I'm pretty sure I can hack graphics.spin so that it uses 32x16 pixel monochrome tiles instead of the 2bit color tiles.
Maybe there isn't a big demand for this, but I didn't want to duplicate the effort if someone else has already done it.
Comments
http://forums.parallax.com/forums/default.aspx?f=25&m=353060
Thanks I'll take a closer look at that code...I'm eventually going to put a terminal emulation mode in the lcd driver itself for when more complex graphics routines aren't needed.
Right now I'm really looking for something that will be 100% graphics.spin API compatible but with only 2 colors. Right now I'm just ignoring the other colors but that's wasting too much space for my tastes.
With 6 extra lines of assembly code I was able to add 2 more levels grey scale dithering [noparse]:)[/noparse]
Now that I'm actually using the other bit of pixel info, I think its best to stick with the standard graphics.spin library.
Don't you just love those AH-HAH moments where an elegant and simple solution to a tricky problem becomes totally obvious.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com