Shop OBEX P1 Docs P2 Docs Learn Events
Class for Electronic Assembly lcd DOGM163x-A using SPI mode — Parallax Forums

Class for Electronic Assembly lcd DOGM163x-A using SPI mode

Peter VerkaikPeter Verkaik Posts: 3,956
edited 2008-05-07 13:06 in General Discussion
Hi,

Attached are my classes for the Electronic Assembly lcd DOGM163x-A using SPI mode.
This lcd offers 3 lines of 16 chars but it also provides 2 two-line modes in which either
lines 1-2 or lines 2-3 are used for a doubleheight font.

Info lcd:
http://www.lcd-module.de/eng/dog/dog.htm
Datasheet lcd:
http://www.lcd-module.de/eng/pdf/doma/dog-me.pdf
Controller used (ST7036):
http://www.lcd-module.de/eng/pdf/zubehoer/st7036.pdf


The attached classes go into folder ...\lib\stamp\peripheral\lcd\dogm


regards peter

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-05-05 14:51
    Nice Peter! There aren't often supporting codes for displays that have an SPI interface. It is often forgotten.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-05-07 13:06
    I updated the class to support loading userdefined characters (up to 8)
    and predefined 7 characters to provide horizontal and vertical bargraphs.

    The function loadBars() loads the bargraph characters into CGRAM.
    The function loadPattern loads the pattern for one of the codes 0-7.
    The functions horizontalBar(lines) and verticalBar(lines) display a bargraph.

    regards peter
Sign In or Register to comment.