![849273cbc4aa7be8bb9866dfcf5e9dcb.jpg](https://ppmm.org/images/2020/10/08/849273cbc4aa7be8bb9866dfcf5e9dcb.jpg)
```
/*
* LCD1602 IIC驱动
*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); //配置LCD地址及行列
void setup()
{
lcd.init(); //初始化LCD
lcd.backlight(); //打开背光
}
void loop()
{
lcd.setCursor(0,0);//设置显示位置
lcd.print(" HELLO WORLD!");//显示字符数据
lcd.setCursor(0,1);//设置显示位置
lcd.print("ARDUINO.NXEZ.COM");//显示字符数据
}
```
https://arduino.nxez.com/2020/10/08/arduino-drives-lcd1602-screen-through-i2c.html