本帖最后由 whfxjc 于 2016-12-21 10:16 编辑
1602通过i2c与arduino连接,测试不成功
程序如下
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.print("Hello, world!");
}
void loop()
{
lcd.backlight();
delay(3000);
lcd.print("Hello, world!");
delay(3000);
}
测试结果
1602黑屏3秒,但是屏幕并不显示"hello ,world"
请教大侠们,哪出了问题呢? |