求一个1602的IIC 总线版的库文件
本帖最后由 nengcai0313 于 2012-8-19 19:27 编辑求一个1602的IIC 总线版的库文件,淘宝卖家居然没有。。。。。
我自己找到了,提供给大家了,测试可用。
这是1602液晶IIC版本的库文件。
使用范例:#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);//设置LCD地址为0x27,2行显示,每行16字符2 line display
void setup()
{
lcd.init(); // 初始化LCD
lcd.backlight();
lcd.print("hello world!");//LCD输出“hello world!”
}
void loop()
{
}
您是在哪里买的?那么陋野? 我自己找到了,提供给大家了,测试可用。
已经编辑到上面了。
攒,这个1.0下不报错了 http://hmario.home.xs4all.nl/arduino/LiquidCrystal_I2C/
这个 连接 上面第一个 下载库 才可以用的哈 ~ 请问一下,我用这个库加helloworld示例代码还是报错,1.0.4,1.0,0023都试过了 为什么啊??
screen:4: error: 'LiquidCrystal_I2C' does not name a type
screen.ino: In function 'void setup()':
screen:8: error: 'lcd' was not declared in this scope 非常感谢楼主提供的LiquidCrystal_I2C for IDE 1.x
这个哭的兼容问题已经困扰我很久了。
感谢楼主的奉献...
页:
[1]