I know, I know, another one, but I think everything is correctly set up. The contrast (used 10K pot as recommended) and backlight work. The RS and Enable pins are in the correctly connected to the Arduino as are the D4 thru D7 pins. The lcd used HD44780 parallel interface chipset as seen at
http://www.sparkfun.com/products/255.
The code is exactly what's on the arduino.cc website: All the tutorials I've seen were with previous versions of the Arduino. I'm using an Uno. Is there something different (extra code) that needs to be added?
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}