After struggeling for days to get something on the display, i got these weird chars. It supposed to state a increasing number.
Im using the New LiquidCrystal lib v1.3.5
Could you guys check if the soldering is okay?
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27 // <<----- Add your address here. Find it from I2C Scanner
#define BACKLIGHT_PIN 3
#define En_pin 2
#define Rw_pin 1
#define Rs_pin 0
#define D4_pin 4
#define D5_pin 5
#define D6_pin 6
#define D7_pin 7
int n = 1;
LiquidCrystal_I2C lcd(I2C_ADDR,En_pin,Rw_pin,Rs_pin,D4_pin,D5_pin,D6_pin,D7_pin);
void setup()
{
lcd.begin (16,2); // <<----- My LCD was 16x2
// Switch on the backlight
lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE);
lcd.setBacklight(HIGH);
lcd.home (); // go home
lcd.print("SainSmartI2C16x2");
lcd.setBacklight(HIGH); // Backlight on
}
void loop()
{
// Backlight on/off every 3 seconds
lcd.setCursor (0,0); // go to start of 2nd line
lcd.print(n++,DEC);
delay(1000);
}