xingtao 发表于 2014-6-22 08:31:24

LiquidCrystal_I2C.h does not name a type

#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()
{
}
运行之后就出现LiquidCrystal_I2C.h does not name a type,请各位看看啊,怎么回事?

Paderboy 发表于 2014-6-22 10:10:28

你得先安装好库文件,否则就会出现这样的错误。
页: [1]
查看完整版本: LiquidCrystal_I2C.h does not name a type