daryllqayyimdarplayzgt
Published © CC BY-SA

Lcd Basics

Learn How to program LCD Display here.

IntermediateProtip6,263
Lcd Basics

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Lcd Display QAPASS 1602a
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

copy the schematics

just copy it.

Code

copy and paste the code

Java
#include <LiquidCrystal.h> // includes the LiquidCrystal Library 
LiquidCrystal lcd(1, 2, 4, 5, 6, 7); // Creates an LC object. Parameters: (rs, enable, d4, d5, d6, d7) 
void setup() { 
 lcd.begin(16,2); // Initializes the interface to the LCD screen, and specifies the dimensions (width and height) of the display } 
}
void loop() { 
 lcd.print("change me"); // change the text to change the text 
 delay(3000); // 3 seconds delay 
 lcd.setCursor(2,1); // Sets the location at which subsequent text written to the LCD will be displayed 
 lcd.print("change me");// change the text to change the text
 delay(3000); 
 lcd.clear(); // Clears the display 
 lcd.blink(); //Displays the blinking LCD cursor 
 delay(4000); 
 lcd.setCursor(7,1); 
 delay(3000); 
 lcd.noBlink(); // Turns off the blinking LCD cursor 
 lcd.cursor(); // Displays an underscore (line) at the position to which the next character will be written 
 delay(4000); 
 lcd.noCursor(); // Hides the LCD cursor 
 lcd.clear(); // Clears the LCD screen 
}

Credits

daryllqayyim

daryllqayyim

8 projects • 4 followers
darplayzgt

darplayzgt

9 projects • 3 followers

Comments