One thing I would like to point out...
If you are having problems with your LCD Screen having malformed characters
(Like the number "3" and "4" being morphed together when the display flashes <ON>),
you might want to try moving >>
lcd.setBacklight(HIGH);
delay(500);
before printing information.
Like this >>
void loop() {
lcd.setBacklight(HIGH); //moved here to prevent numbers in the same line, same column from being morphed together.
delay(500);
// 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);
lcd.setBacklight(LOW);
delay(500);
}
What was happening was the character was changing while the LED was on. I think it’s a timing issue. So try this if you’re running into problems, otherwise you can stick with the way Stephanie ‘s Zip codes it >>
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);
lcd.setBacklight(HIGH);
delay(500);
lcd.setBacklight(LOW); // << If you want to force seeing the morph happen, change the <LOW> to <HIGH> here
delay(500);
}
I do have one question: What is the correct way to talk to two LCDs? Yeah I know you start off with
// include the library code:
#include <Wire.h>
#include <LiquidTWI.h>
LiquidTWI lcd(0); // Connect via i2c, default address #0 (A2-A0 not jumpered)
LiquidTWI lcd(1); // Connect via i2c, address #1 (A2-A1 not jumpered, A0 jumpered)
void setup() {
// set up the LCD's number of rows and columns:
lcd.begin(16, 2); // << so how do you tell the IDE which LCD(X) your talking too?
// Print a message to the LCD.
lcd.print("hello, world!"); // << so how do you tell the IDE which LCD(X) your talking too?
}
but from there what do you do?