Shop OBEX P1 Docs P2 Docs Learn Events
Mono Graphics Driver — Parallax Forums

Mono Graphics Driver

Chad GeorgeChad George Posts: 138
edited 2009-06-05 02:05 in Propeller 1
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.

Comments

  • localrogerlocalroger Posts: 3,452
    edited 2009-06-05 00:18
    Chad, I think this might be in the direction of what you're looking for...

    http://forums.parallax.com/forums/default.aspx?f=25&m=353060
  • Chad GeorgeChad George Posts: 138
    edited 2009-06-05 00:29
    localroger,

    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.
  • Chad GeorgeChad George Posts: 138
    edited 2009-06-05 01:25
    Um...nevermind the whole 2 color issue.

    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. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-06-05 02:05
    I will throw this out: I sell a graphical LCD on Brilldea that is 128*96. The display is monochrome but has a couple levels of shading. The driver can be downloaded from Brilldea's site or Parallax's object exchange. The driver is in ASM is a fast and works well. You might be able to modify the driver for your use. I recall that the driver is flexible because it is an in ASM command style format like graphics.spin.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
Sign In or Register to comment.