5.4.15 Project 8.1 Display Characters
1. Description
As we all know, screen is one of the best ways for people to interact with electronic devices.
2. Component Knowledge
1602 is a line that can display 16 characters. There are two lines, which use IIC communication protocol.

3. Control Pins
SDA |
SDA |
|---|---|
SCL |
SCL |
4. Test Code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C mylcd(0x27,16,2);
void setup(){
mylcd.init();
mylcd.backlight();
}
void loop(){
mylcd.setCursor(0, 0);
mylcd.print("hello");
mylcd.setCursor(0, 1);
mylcd.print("keyestudio");
//mylcd.clear();
}
5. Test Result
The first line of the LCD1602 shows hello and the second line shows keyestudio.