Pages: [1]   Go Down
Author Topic: A new library for LCDs connected over SPI.  (Read 1844 times)
0 Members and 1 Guest are viewing this topic.
Wuppertal/Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I just released  a new library  to drive DOG text LCDs from Electronic Assembly

Code and documention is here : http://code.google.com/p/doglcd

Features
  • Displays are available with 1, 2 and 3 lines of characters
  • Can be combined with Led backlights in 5 different colors
  • Only 4 Arduino IO-pins needed to control the display (SPI-mode)
  • You can have more than one display connected to your arduino. Each new display needs only 1 more IO-Pin.
  • Software controlled contrast setting
  • Software controlled backlight setting

Here is a picture of my Nano driving 2 displays (with lots of pins left for other Arduino tasks)

Eberhard

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I did something similar using I2C and an 8-bit I/O expander chip. Also took Limor Fried's LiquidCrystal library and generalized it to handle a couple of different connection schemes (including the original 4-/8-pin parallel mode).

If anyone is interested in using the reworked library as base for a general-purpose LCD library which can tie into this SPI connection mode as well, feel free to adapt/modify/extend the code - it can be found at http://news.jeelabs.org/2009/09/26/generalized-liquidcrystal-library/

-jcw
Logged

Pages: [1]   Go Up
Jump to: