use Arduino Nano connect IIC LCD Cyclic display on display module “Hennan University of
Technology” word . The display style and speed can be changed appropriately
Learn to use LCD display , Static display or scrolling display , And the speed can be adjusted
schematic diagram :
flow chart :
Code bold style
#include <Wire.h> // Arduino IDE Built in
#include <LiquidCrystal_I2C.h>
// Set the pins on the I2C chip used for LCD connections:
// addr, en,rw,rs,d4,d5,d6,d7,bl,blpol
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set LCD I2C
address
void setup() {
lcd.begin(16, 2); // initialization LCD, a line 16 Character of , common 2 that 's ok , Preset on backlight
// Flash three times
for(int i = 0; i < 3; i++) {
lcd.backlight(); // Turn on backlight
delay(250);
lcd.noBacklight(); // Turn off backlight
delay(250);
}
lcd.backlight();
lcd.clear();

}

void loop() {
lcd.setCursor(0, 0); // Set cursor position at the beginning of the first line
lcd.print(“Henan University of Technology”);
lcd.scrollDisplayLeft();
delay(300);
}
Experience and suggestions : The experiment is initialized LCD, a line 16 Character of , common 2
that 's ok , Preset on backlight , But actually I only use one line to display , The rest can be tried as an inquiry , For example, what is the result of initializing three rows ! The two lines scroll together !
lcd.scrollDisplayLeft() You can scroll left
lcd.scrollDisplayRight() You can scroll right
Do you know how to display it only once ? Do not repeatedly display the printed data , If you answer correctly, you will be rewarded

Technology