“SKU:RB-05L003 LCD12864点阵液晶扩展板”的版本间的差异

来自ALSROBOT WiKi
跳转至: 导航搜索
(以“ ==产品概述== 2014年最新推出的12864液晶板采用的是带汉字库图形点阵液晶显示模块,具有串...”为内容创建页面)
 
例子程序
第50行: 第50行:
 
* V5.0传感器扩展板 * 1个
 
* V5.0传感器扩展板 * 1个
 
===例子程序===
 
===例子程序===
[http://pan.baidu.com/s/1kT0Fiar 点此下载]12864液晶扩展板使用库文件及相关例子程序<br/>
+
* 12864液晶扩展板使用库文件、相关例子程序、解码和取模软件<br/>
[http://pan.baidu.com/s/1sj02Qh3 点此下载]12864液晶扩展板使用解码和取模软件<br/>
+
* 下载链接:http://pan.baidu.com/s/1i4Ro93R 密码:swso <br/>
 
====串行显示汉字====
 
====串行显示汉字====
 
<pre style='color:blue'>
 
<pre style='color:blue'>
第244行: 第244行:
 
}
 
}
 
</pre>
 
</pre>
 +
 
===程序效果===
 
===程序效果===
 
以上三个测试例程,分别通过串行和并行通信方式进行显示,文字显示:“奥松机器人,www.alsrobot.cn”,图片显示为位图,通过下载解码和取模软件可以轻松编程。
 
以上三个测试例程,分别通过串行和并行通信方式进行显示,文字显示:“奥松机器人,www.alsrobot.cn”,图片显示为位图,通过下载解码和取模软件可以轻松编程。

2017年7月12日 (三) 17:08的版本

RB-05L003.jpg

目录

产品概述

2014年最新推出的12864液晶板采用的是带汉字库图形点阵液晶显示模块,具有串行和并行接口,背光控制开关(串行与并行模式均可使用),对比度调节旋钮,板上集成IDC6插座和IDC14插座,可通过套件中附送的专用连接线与Arduino传感器扩展板连接,无需再买相关转接板,通过我们提供的例子程序,您可以用Arduino控制器做控制完成显示8192个中文汉字(16X16点阵)、128个字符(8X16点阵)和图形显示(128X64点阵)功能,轻松制作Arduino互动显示器最佳选择。

规格参数

  1. 电源电压:VDD+3.3V~+5.5V(内置升压电路,无需负压)
  2. 控制器:ST7920
  3. 点阵个数:128列×64行
  4. 显示颜色:蓝底白字
  5. 可视角度:170度
  6. LCD类型:STN
  7. 控制接口:8位或4位并行和3位串行
  8. LED背光:蓝色
  9. 软件功能:光标显示、画面移位、自定义字符、反白显示、睡眠模式等
  10. 逻辑工作电压(VDD):4.5~5.5V
  11. 电源地(GND):0V
  12. 工作温度:-20℃~70℃
  13. 存储温度:-30℃~80℃
  14. 模块尺寸:93×70×22mm
  15. 视域尺寸:73×39mm

发货清单

  • 12864 液晶扩展版 * 1个
  • 6P 双头线 * 1条
  • 14P 双头线 * 1条

12864液晶屏接口定义

  • PIN1------GND 电源接入 -, 一般接0V。
  • PIN2------电源接入 +, 一般接5V。
  • PIN3------对比度调整端,VDD和GND接可调电阻两端,中间抽头接至V0。
  • PIN4------RS 指令/数据选择
  • PIN5------R/W 读写选择
  • PIN6------E,信号使能
  • PIN7------D0,数据位0
  • PIN8------D1,数据位1
  • PIN9------D2,数据位2
  • PIN10-----D3,数据位3
  • PIN11-----D4,数据位4
  • PIN12-----D5,数据位5
  • PIN13-----D6,数据位6
  • PIN14-----D7,数据位7
  • PIN15-----PSB 并行:PSB=1,可以接VCC; 串行:PSB=0,一般接GND
  • PIN16 ----NC,不连接
  • PIN17-----~RST,模块复位,可不连接
  • PIN18 ----NC,不连接
  • PIN19 ----LED+ ,背光 +,一般接5V。
  • PIN20 ----LED- ,背光 -,一般接GND。

使用方法

使用硬件

  • Carduino UNO 控制器 * 1个
  • LCD12864 点阵液晶扩展版 * 1个
  • USB 数据线 * 1条
  • V5.0传感器扩展板 * 1个

例子程序

串行显示汉字

#include "LCD12864RSPI.h"
#define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] )
unsigned char show0[]={
  0xB9, 0xFE, 0xB6, 0xFB,0xB1, 0xF5, 0xB0, 0xC2, 0xCB, 0xC9, 0xBB, 0xFA, 0xC6, 0xF7, 0xC8, 0xCB}; //哈尔滨奥松机器人
unsigned char show1[]="www.alsrobot.cn";
void setup()
{
LCDA.Initialise(); // 屏幕初始化
delay(100);
}
 
void loop()
{
LCDA.CLEAR();//清屏
delay(100);
LCDA.DisplayString(0,0,show0,AR_SIZE(show0));//第一行第三格开始,显示文智位机器人
delay(100);
LCDA.DisplayString(2,0,show1,AR_SIZE(show1));;//第三行第二格开始,显示网址dfrobot.com/
delay(5000);
}

串行图片显示

#include "LCD12864RSPI.h"
#define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] )
unsigned char logo0[]={                                         //笑脸
 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF9,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xBF,0xFF,0xFF,0xFA,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xBF,0xFF,0xFF,0xF6,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xBF,0xFF,0xFF,0xEE,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFC,0x00,0x00,0x00,0xEE,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0x3F,0xFF,0xFF,0x00,
      0x00,0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFC,0xBF,0xFF,0xFF,0xBF,
      0x7F,0xFF,0xFD,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xF9,0xBF,0xFF,0xFF,0xBF,
      0x7F,0xFF,0xFD,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xF3,0x7F,0xFF,0xFF,0x7F,
      0xBF,0xFF,0xFB,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xE7,0x7F,0xFF,0xFE,0xFF,
      0xBF,0xFF,0xF9,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xDF,0x7F,0xFF,0xFC,0xFF,
      0xBF,0xFF,0xFA,0x7F,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xBF,0x7F,0xFF,0xFD,0xFF,
      0xBF,0xFF,0xFB,0x9F,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0x7F,0x7F,0xFF,0xFB,0xFF,
      0xDF,0xFF,0xF7,0xE7,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFC,0xFF,0x7F,0xFF,0xF3,0xFF,
      0xDF,0xFF,0xF7,0xF9,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xF9,0xFF,0x7F,0xFF,0xF7,0xFF,
      0xDF,0xFF,0xF7,0xFE,0x7F,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xF3,0xFF,0x7F,0xFF,0xEF,0xFF,
      0xEF,0xFF,0xF7,0xFF,0x9F,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xE7,0xFF,0x7F,0xFF,0xCF,0xFF,
      0xEF,0xFF,0xEF,0xFF,0xE7,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xDF,0xFF,0x7F,0xFF,0xDF,0xFF,
      0xEF,0xFF,0xEF,0xFF,0xF9,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xBF,0xFF,0x7F,0xFF,0xBF,0xFF,
      0xF7,0xFF,0xEF,0xFF,0xFE,0x7F,0xFF,0xFF,
      0xFF,0xFF,0x7F,0xFE,0xFF,0xFF,0x3F,0xFF,
      0xF7,0xFF,0xEF,0xFF,0xFF,0x9F,0xFF,0xFF,
      0xFF,0xFE,0xFF,0xFE,0xFF,0xFF,0x7F,0xFF,
      0xF7,0xFF,0xDF,0xFF,0xFF,0xE7,0xFF,0xFF,
      0xFF,0xF9,0xFF,0xFE,0xFF,0xFE,0xFF,0xFF,
      0xF7,0xFF,0xDF,0xFF,0xFF,0xF9,0xFF,0xFF,
      0xFF,0xF3,0xFF,0xFE,0xFF,0xFC,0xFF,0xFF,
      0xFB,0xFF,0xDF,0xFF,0xFF,0xFE,0x7F,0xFF,
      0xFF,0xE7,0xFF,0xFE,0xFF,0xFD,0xFF,0xFF,
      0xFB,0xFF,0xDF,0xFF,0xFF,0xFF,0x9F,0xFF,
      0xFF,0xCF,0xFF,0xFE,0xFF,0xFB,0xFF,0xFF,
      0xFB,0xFF,0x9F,0xE0,0x00,0x00,0x03,0xFF,
      0xFF,0xBF,0xFF,0xFE,0xE0,0x00,0x00,0x00,
      0x00,0x00,0x00,0x1F,0xFF,0xFF,0xC1,0xFF,
      0xF8,0x00,0x00,0x00,0x1F,0xF7,0xFF,0xFF,
      0xFD,0xFF,0xBF,0xFF,0xFF,0xFF,0x1C,0xFF,
      0xFF,0xFF,0xFF,0xFE,0xFF,0xEF,0xFF,0xFF,
      0xFD,0xFF,0xBF,0xFF,0xFF,0xFC,0xFF,0xFF,
      0xFF,0xBF,0xFF,0xFE,0xFF,0xCF,0xFF,0xFF,
      0xFD,0xFF,0xBF,0xFF,0xFF,0xF3,0xFF,0xFF,
      0xFF,0xDF,0xFF,0xFE,0xFF,0xDF,0xFF,0xFF,
      0xFE,0xFF,0x7F,0xFF,0xFF,0xCF,0xFF,0xFF,
      0xFF,0xEF,0xFF,0xFE,0xFF,0xBF,0xFF,0xFF,
      0xFE,0xFF,0x7F,0xFF,0xFF,0x3F,0xFF,0xFF,
      0xFF,0xF7,0xFF,0xFD,0xFF,0x3F,0xFF,0xFF,
      0xFE,0xFF,0x7F,0xFF,0xFC,0xFF,0xFF,0xFF,
      0xFF,0xFB,0xFF,0xFD,0xFF,0x7F,0xFF,0xFF,
      0xFF,0x7F,0x7F,0xFF,0xF3,0xFF,0xFF,0xFF,
      0xFF,0xFD,0xFF,0xFD,0xFE,0xFF,0xFF,0xFF,
      0xFF,0x7E,0xFF,0xFF,0xCF,0xFF,0xFF,0xFF,
      0xFF,0xFE,0xFF,0xFD,0xFC,0xFF,0xFF,0xFF,
      0xFF,0x7E,0xFF,0xFF,0x3F,0xFF,0xFF,0xFF,
      0xFF,0xFE,0x7F,0xFD,0xFD,0xFF,0xFF,0xFF,
      0xFF,0x7E,0xFF,0xF8,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0x3F,0xFD,0xFB,0xFF,0xFF,0xFF,
      0xFF,0xBE,0xFF,0xE3,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0x9F,0xFD,0xF7,0xFF,0xFF,0xFF,
      0xFF,0xBD,0xFF,0x9F,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xCF,0xFD,0xF7,0xFF,0xFF,0xFF,
      0xFF,0xBD,0xFE,0x7F,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xE7,0xFD,0xEF,0xFF,0xFF,0xFF,
      0xFF,0xDD,0xF9,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xF3,0xFD,0xDF,0xFF,0xFF,0xFF,
      0xFF,0xDD,0xE7,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xF9,0xFD,0xDF,0xFF,0xFF,0xFF,
      0xFF,0xDB,0x9F,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFC,0xFD,0xBF,0xFF,0xFF,0xFF,
      0xFF,0x80,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFE,0x7B,0x7F,0xFF,0xFF,0x80,
      0x00,0x69,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0x3B,0x7F,0xC0,0x00,0x3F,
      0xFF,0xE3,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xBA,0x80,0x3F,0xFF,0xFF,
      0xFF,0x03,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xD9,0xFF,0xFF,0xFF,0xFF,
      0xFE,0x77,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xE9,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xF7,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xF3,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFB,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFD,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFE,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
      0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
};
void setup()
{
LCDA.Initialise(); // 屏幕初始化
delay(100);
}
void loop()
{
LCDA.DrawFullScreen(logo0);
delay(5000);
}

并行显示

#include "LCD12864R.h"
#define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] )
unsigned char show0[]={ 0xB9, 0xFE,0xB6, 0xFB,0xB1, 0xF5,0xB0, 0xC2,0xCB, 0xC9,0xBB, 0xFA,0xF7,
0xC8, 0xCB};                    //哈尔滨奥松机器人
unsigned char show1[]="www.alsrobot.cn";
 
void setup()
{
LCDA.Initialise(); // 屏幕初始化
delay(100);
}
 
void loop()
{
LCDA.CLEAR();//清屏
delay(100);
LCDA.DisplayString(0,0,show0,AR_SIZE(show0));//第一行第三格开始,显示文智位机器人
delay(100);
LCDA.DisplayString(2,0,show1,AR_SIZE(show1));;//第三行第二格开始,显示网址dfrobot.com/
delay(5000);
}

程序效果

以上三个测试例程,分别通过串行和并行通信方式进行显示,文字显示:“奥松机器人,www.alsrobot.cn”,图片显示为位图,通过下载解码和取模软件可以轻松编程。

视频演示

12864 ye jing.png
Iic1602 01.png


产品相关推荐

Erweima.png

购买地址

LCD12864点阵液晶扩展板

周边产品推荐

Raspberry Pi 树莓派 2代 B+ 7寸液晶屏 LCD电容触摸 高清显示器
Raspberry Pi 直插 3.5寸液晶屏 树莓派2代 B+ 高清 可触摸液晶屏

相关问题解答

Arduino驱动控制12864液晶屏
12864液晶显示程序编译错误

相关学习资料

[http://www.makerspace.cn/forum.ph