|
I2C 版本的1602,烧写下面的程序之后出现图片中的乱码现象。
请教大家我该如何继续debug?
1.已经检查过连接,确认过 clock和data没有错
2.确定地址是 0x27, 和卖家的资料一致,另外我用i2c扫描程序看过确定是 0x27
- //YWROBOT
- //Compatible with the Arduino IDE 1.0
- //Library version:1.1
- #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
- delay(300);
- // Print a message to the LCD.
- lcd.backlight();
- delay(300);
- lcd.print("Hello, world!jjjjj");
- lcd.display();
- }
- void loop()
- {
- }
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|