lukatopgun
Published © GPL3+

I2C Writing Aninmation

Writing appears one by one

BeginnerProtip333
I2C Writing Aninmation

Things used in this project

Hardware components

Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
An I2C lcd screen
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
Arduino UNO
Arduino UNO
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Arduino I2C library

Story

Read more

Schematics

Layout

Plug the board into the Computer and the lcd in the given place and run the code

Code

Untitled file

C/C++
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 20, 4); // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup() {
  
  lcd.init();// initialize the lcd
  lcd.backlight(); //turn on lcd light (to turn of type: lcd.noBacklight(); )
  lcd.setCursor(2, 0); //set where writing starts
  lcd.print("H"); //what your lcd will print
  lcd.setCursor(3, 0); //set where writing starts
  delay(300);
  lcd.print("i"); //what your lcd will print
  lcd.setCursor(5, 0); //set where writing starts
  delay(300);
  lcd.print("E"); //what your lcd will print
  lcd.setCursor(6, 0); //set where writing starts
  delay(300);
  lcd.print("v"); //what your lcd will print
  lcd.setCursor(7, 0); //set where writing starts
  delay(300);
  lcd.print("e"); //what your lcd will print
  lcd.setCursor(8, 0); //set where writing starts
  delay(300);
  lcd.print("r"); //what your lcd will print
  lcd.setCursor(9, 0); //set where writing starts
  delay(300);
  lcd.print("y"); //what your lcd will print
  lcd.setCursor(10, 0); //set where writing starts
  delay(300);
  lcd.print("o"); //what your lcd will print
  lcd.setCursor(11, 0);
  delay(300);
  lcd.print("n"); //what your lcd will print
  lcd.setCursor(12, 0); //set where writing starts
  delay(300);
  lcd.print("e"); //what your lcd will print

}

void loop() {


}

Credits

lukatopgun
2 projects • 1 follower
Contact

Comments

Please log in or sign up to comment.