Niko123
Published © GPL3+

Simple lcd project

learn to use a lcd

BeginnerShowcase (no instructions)979
Simple lcd project

Things used in this project

Schematics

SHEMATIC

Code

SOFTWARE COD

C/C++
#include <LiquidCrystal.h> 
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); 
#define contra 9 
#define bri 10 
void setup() {
  lcd.begin(16, 2); 
  pinMode(contra, OUTPUT); 
  pinMode(bri, OUTPUT); 
  digitalWrite(contra, LOW); 
  analogWrite(bri, 255); 
}
void loop() {
  lcd.print("LEWIS"); 
  lcd.setCursor(0, 1);
  lcd.print("HAMILTONN!!");
  delay(1000); 
  for (int l = 0; l < 16; l++) { 
    lcd.scrollDisplayRight(); 
    delay(90); 
  }
  delay(1000);
  for (int l = 0; l < 16; l++)
    lcd.scrollDisplayLeft();
  for (int l = 51; l > -1; l--) { 
    analogWrite(bri, l * 5);
    delay(35);
  }
  delay(1000);
  digitalWrite(bri, HIGH);
  for (int l = 0; l < 51; l++) { 
    analogWrite(contra, l * 5);
    delay(35);
  }
  delay(1000);
  digitalWrite(contra,LOW);
  lcd.setCursor(0, 0);
}

Credits

Niko123

Niko123

3 projects • 10 followers

Comments