Now i would like some informations about which library to install. can anyone tell me which library to install and how? , I have install someone but , i think that some commands not responding , so for this lcd is there any particular library which will support all commands? I am beginner so if anyone can help i would appreciate. thank you!
This is what I recommended to the last "beginner" and it worked flawlessly.
Download a library called hd44680.h from the library manager. Hook up power/ground/sda/scl.
You can achieve plug and play performance of the lcd with only contrast pot adjustment with this code.
#include <Wire.h>
#include <hd44780.h>
#include <hd44780ioClass/hd44780_I2Cexp.h> // include i/o class header
hd44780_I2Cexp lcd; // declare lcd object: auto locate & config display for hd44780 chip
void setup()
{
// initialize LCD with number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD
lcd.print("Hello, World!");
}
void loop()
{
lcd.setCursor(0, 1);
lcd.print(millis() / 1000);
delay(1000);
}
The hd44780 library comes with several hd44780_I2Cexp i/o class examples including a diagnostic sketch to test the i2c lines and LCD display that should "just work" out of the box, so there is no need to write an example sketch to get something up and working.
--- bill
so there is no need to write an example sketch to get something up and working.
You are right of course, Bill, but its never clear to me if some of the people who come here for assistance have any sketches written. Some may be taking an Arudino and lcd out of the box for the first time. Getting a thrill from "Hello World" is part of the deal.