Try following the tutorial at http://www.ladyada.net/learn/lcd/charlcd.html
Quote from: floresta on Mar 28, 2011, 04:33 amTry following the tutorial at http://www.ladyada.net/learn/lcd/charlcd.htmlThat was the one I followed, got up and running with it in no time.Then once I knew it all worked, I got a little more daring with the second schematic in this one so I could get 3 of those pins back.http://code.google.com/p/arduinoshiftreglcd/
#include <ShiftRegLCD.h>ShiftRegLCD objectName(Datapin, Clockpin, Enablepin or TWO_WIRE [, Lines [, Font]]) where Lines and Font are optional. * Enablepin: can be replaced by constant TWO_WIRE, if using only 2 wires. * Lines: 1 or 2 lines (also 4-line LCD's must be set as 2). * Font : 0 or 1, small or big font (8 or 10 pixel tall font, if available).
You will have to change...
Are you really in need of three pins? Have you used the analog pins as digital pins?
Quote from: liudr on Mar 28, 2011, 11:55 pmYou will have to change...Already done Quote from: liudr on Mar 28, 2011, 11:55 pmAre you really in need of three pins? Have you used the analog pins as digital pins?Yup, need the pins, I'm now down from using 11 to using 8, and I still have 2 servo motors and a stepper (and maybe another 4x20 LCD) that I'll need to hook up to this. But let's not hijack this fella's thread. I was simply commenting that Ladyada's tutorial helped me, and informed me that the LCD was working before moving on to what I really wanted to do.