All, today i gonna to share how Arduino connected to LCD(16x02).
LCD 16x02 means 16 character in 2 rows.
Code:
#include <LiquidCrystal.h>
int Contrast=75;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
analogWrite(6,Contrast);
lcd.begin(16, 2);
}
void loop()
{
lcd.setCursor(0, 0);
lcd.print("ITS WORK");
lcd.setCursor(0, 1);
lcd.print("WELL DONE");
}
LCD 16x02 means 16 character in 2 rows.
Connection between LCD and UNO |
#include <LiquidCrystal.h>
int Contrast=75;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
analogWrite(6,Contrast);
lcd.begin(16, 2);
}
void loop()
{
lcd.setCursor(0, 0);
lcd.print("ITS WORK");
lcd.setCursor(0, 1);
lcd.print("WELL DONE");
}
Comments
Post a Comment