我的转接板地址是0x20,所以依照网上最简单的写了个程序,如下,
LiquidCrystal_I2C lcd(0x20,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight(); //Open the backlight
lcd.print("Welcome to "); // Print a message to the LCD.
lcd.setCursor(0,1); //newline
lcd.print("nihao");// Print a message to the LCD
}
void loop()
{
}
但是lcd1602不显示任何字符,只有背光在亮。。
|