Go Down

Topic: A new library for LCDs connected over SPI. (Read 2008 times) previous topic - next topic

wayoda

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


jcw

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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy