首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Arduino液晶显示器不打印

Arduino液晶显示器不打印
EN

Stack Overflow用户
提问于 2018-11-28 03:32:26
回答 1查看 346关注 0票数 0

我正在尝试使用Arduino Uno液晶显示器作为一个学校项目。我完全按照https://www.arduino.cc/en/Tutorial/HelloWorld上的说明进行操作,并且没有打印文本。背光正常工作,对比用电位器调节,但没有文字出来。

代码语言:javascript
复制
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
    // set up the LCD's number of columns and rows:
    lcd.begin(16, 2);
    // Print a message to the LCD.
    lcd.print("hello, world!");
}

void loop() {
    // set the cursor to column 0, line 1
    // (note: line 1 is the second row, since counting begins with 0):
    lcd.setCursor(0, 1);
    // print the number of seconds since reset:
    lcd.print(millis() / 1000);
}  

`

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-11-28 03:47:01

从您所链接的图像判断,显示似乎没有正确地连接:您应该首先焊接一个引脚头。

参见红色箭头附近的部分:https://i.imgur.com/eSOMe1x.jpg

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53511700

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档