ARDUINO 基于PCF8574T的LCD1602显示
在库管理中下载LiquidCrystal_I2C.h库函数
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);//一般为0x27,其余两分别为列,行
void setup() {
// put your setup code here, to run once
lcd.init();
lcd.backlight();
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0,0);
lcd.print("hellow,world");
lcd.setCursor(0,1);
lcd.print("Welcome");
delay(1000);
//lcd.clear();
}
若没有显示,调节背面的可调电阻,降低背景亮度