I have just bought an Alphanumeric 16x2 LCD and I'm trying to run a hello world program with Arduino. I have run the program and all Im getting is 16 Black squares. Can anyone suggest why this is?
Yes I think so Take a look here http://www.kiranjose.com/blog/2011/...6x2-lcd-contrast-using-10k-variable-resistor/I have left the contrast as it is. Is the black squares there because there is no connection to the contrast pin?
I have used this code:
#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);
}
by Jake Hertz
by Duane Benson
by Jake Hertz
by Jake Hertz