MisterBotBreak
Published

How to Use an LCD Screen

In this project, you will learn how write words on an LCD screen with code.

BeginnerProtip1.5 hours4,522
How to Use an LCD Screen

Things used in this project

Story

Read more

Schematics

LCD

This is the mounting of the LCD screen with the Arduino card.

Code

LiquidCrystal

Arduino
This code will write on the LCD what do you want.
#include <LiquidCrystal.h>


const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
 
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  // Turn off the display:
  lcd.noDisplay();
  delay(500);
  // Turn on the display:
  lcd.display();
  delay(500);
}

Credits

MisterBotBreak

MisterBotBreak

48 projects • 149 followers
I love electronics and cats :D !

Comments