极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: 弘毅

arduino学习笔记10 - 1602液晶实验

  [复制链接]
发表于 2014-6-24 11:24:47 | 显示全部楼层
{:soso_e100:}谢谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2014-8-4 20:53:08 | 显示全部楼层
请问这个V0接电阻再街道GRN的时候 为什么要和RW接到一起去呢?
回复 支持 反对

使用道具 举报

发表于 2014-10-10 15:17:51 | 显示全部楼层
求问 按照你的接线 接好了  用的是排针吧1602 连接起来的 只不过没有焊接 下载好程序 怎么一点反应都没哟呢
回复 支持 反对

使用道具 举报

发表于 2014-10-13 11:48:47 | 显示全部楼层
大神!问一下为什么我修改了引脚,屏幕就不能正确显示了呢?改了之后第一行显示黑块,引脚是不能改的吗?
回复 支持 反对

使用道具 举报

发表于 2014-10-28 19:42:29 | 显示全部楼层
请问知道oled程序吗
回复 支持 反对

使用道具 举报

发表于 2014-12-5 22:56:22 | 显示全部楼层
只有背景灯亮,没有反应是什么情况?
回复 支持 反对

使用道具 举报

发表于 2015-1-28 18:07:44 | 显示全部楼层
学习了,很有用,正在了解如何把模块发来的信息显示到lcd上
回复 支持 反对

使用道具 举报

发表于 2015-2-3 17:51:54 | 显示全部楼层
怎么说呢,我觉得你的这个硬件软件都全是错哎。。。我按照你的方法连接编写后,别说显示了,连分辨率都是错的。只有把分辨率那个口直接连低才能勉强显示一点点,有一点电阻都是不可以的
回复 支持 反对

使用道具 举报

发表于 2015-2-8 15:33:31 | 显示全部楼层
meng 发表于 2014-12-5 22:56
只有背景灯亮,没有反应是什么情况?

我的也是这个情况?
回复 支持 反对

使用道具 举报

发表于 2015-2-8 15:34:00 | 显示全部楼层
请问,为什么我按照楼主的接线方法连接,显示屏只是亮了,但是没有任何的内容显示?用的是4位接线法.

                      谢谢....
回复 支持 反对

使用道具 举报

发表于 2015-4-11 10:45:32 | 显示全部楼层

RE: arduino学习笔记10 - 1602液晶实验

十进制应该不用后缀“D”吧?
回复 支持 反对

使用道具 举报

发表于 2015-4-18 13:57:26 | 显示全部楼层
这个教程不错,一试就成功!

只是我的是个蓝屏的。显示的时候,正面看不清,侧面才能看清楚。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2015-4-18 21:06:37 | 显示全部楼层
allenyao 发表于 2015-4-18 13:57
这个教程不错,一试就成功!

只是我的是个蓝屏的。显示的时候,正面看不清,侧面才能看清楚。

你接电阻了吗?要是接了还这样的话可能是电阻阻值不对。建议你换个电阻试试~
回复 支持 反对

使用道具 举报

发表于 2015-5-17 10:50:10 | 显示全部楼层
LCD可以用库驱动的。官方的库:LiquidCrystal。晒示例代码:
  1. /*
  2.   LiquidCrystal Library - Hello World

  3. Demonstrates the use a 16x2 LCD display.  The LiquidCrystal
  4. library works with all LCD displays that are compatible with the
  5. Hitachi HD44780 driver. There are many of them out there, and you
  6. can usually tell them by the 16-pin interface.

  7. This sketch prints "Hello World!" to the LCD
  8. and shows the time.

  9.   The circuit:
  10. * LCD RS pin to digital pin 12
  11. * LCD Enable pin to digital pin 11
  12. * LCD D4 pin to digital pin 5
  13. * LCD D5 pin to digital pin 4
  14. * LCD D6 pin to digital pin 3
  15. * LCD D7 pin to digital pin 2
  16. * LCD R/W pin to ground
  17. * LCD VSS pin to ground
  18. * LCD VCC pin to 5V
  19. * 10K resistor:
  20. * ends to +5V and ground
  21. * wiper to LCD VO pin (pin 3)

  22. Library originally added 18 Apr 2008
  23. by David A. Mellis
  24. library modified 5 Jul 2009
  25. by Limor Fried (http://www.ladyada.net)
  26. example added 9 Jul 2009
  27. by Tom Igoe
  28. modified 22 Nov 2010
  29. by Tom Igoe

  30. This example code is in the public domain.

  31. http://www.arduino.cc/en/Tutorial/LiquidCrystal
  32. */

  33. // include the library code:
  34. #include <LiquidCrystal.h>

  35. // initialize the library with the numbers of the interface pins
  36. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

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

  43. void loop() {
  44.   // set the cursor to column 0, line 1
  45.   // (note: line 1 is the second row, since counting begins with 0):
  46.   lcd.setCursor(0, 1);
  47.   // print the number of seconds since reset:
  48.   lcd.print(millis() / 1000);
  49. }
复制代码
回复 支持 反对

使用道具 举报

发表于 2015-10-13 23:21:57 | 显示全部楼层
貌似没有成功,再试试
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-28 11:56 , Processed in 0.044072 second(s), 30 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表