Gig*_*itz 1 lcd arduino arduino-ide arduino-uno
我买的液晶显示器不工作,我不知道为什么!当我上传代码时,显示屏仅亮起,但没有显示任何内容!有什么帮助吗?
我的 LCD 型号:1602A 带 I2C (16x2)就像这里的这个
地址:0x27(使用I2C扫描码检查)
代码:
#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.begin(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(1,0);
lcd.print("hello everyone");
lcd.setCursor(1,1);
lcd.print("I am Giga Blitz");
}
void loop() {
}
Run Code Online (Sandbox Code Playgroud)
示意图: 点击此处查看图片
| 归档时间: |
|
| 查看次数: |
13227 次 |
| 最近记录: |