Arduino驱动I2C接口12864LCD大屏液晶模块方法及库文件

Arduino驱动I2C接⼝12864LCD⼤屏液晶模块法及库⽂件关键词:Arduino显⽰,12864液晶模块,中⽂显⽰,IIC接⼝,I2C接⼝,12864驱动程序
液晶显⽰模块⽬前在中国发展已经有30多个年头了,市场上应⽤最⼴泛的要属于128*64点阵的显⽰屏,从类型上分COB,COG及OLED,稳定性和经济性最好要属于COB⼯艺的液晶显⽰模块。在百度⼀搜索就可以到COB简介及⼯艺COB Chip-on-Board 也称为芯⽚直接贴装技术,是指将裸芯⽚直接粘贴在印刷电路板上,然后进⾏引线键合,再⽤有机胶将芯⽚和引线包封保护的⼯……
12864点阵的液晶屏主控芯⽚⼀般是ST7920及KS0107+KS0108及KS0086等IC,今天介绍⼀款我最新发现的⼀款COB液晶带(RSCG12864B) 拥有I2C接⼝,内建中⽂字库(GB2312),ASCII有5*7点阵,6*12点阵,8*16点阵三种之多,可谓⽬前市场最全,这款液晶屏最出⾊的要属于可以存储多达2000张图⽚,可以⼀般界⾯只需在电脑上做好BIN格式图⽚,配合相应的下载⼯具,就可以存储到液晶模块上。。
引脚接线图:
序号符号I/O功能描述
1GND P电源地
2VDD P电源
3RST I复位信号,低电平有效
4SCL I I2C 时钟信号
5SDA I I2C 数据信号
6BUSY O忙信号,⾼为忙,低为闲。忙状态下不接收指令
7A1I I2C 地址信号 A1
8A0I I2C 地址信号 A0
氯喹那多
12864库⽂件:
/*
RSCG12864B.h - 12864LCD library for Arduino & Wiring
Copyright (c) 2015 Raylid Electronics Co.,Ltd (www.raylid).  All right reserved. */
/*--------Arduino Uno connection toLCD-----------------------------------------------
LCD Module                Arduino Uno
GND-------------------------GND
VDD-------------------------5.0V
RST(Floating)
SCL-------------------------A5(PC5)
SDA-------------------------A4(PC4)
BUSY------------------------A3(PC3)
A1(Floating)
A0(Floating)
-------------------------------------------------------------------------------------*/
#ifndef RSCG12864B_h
#define RSCG12864B_h
typedef unsigned char U8;
typedef unsigned int U16;
typedef unsigned long U32;asp服务
typedef const char  CCHAR;
class RAYLIDLCD
瓜绢野螟{
private:
public:
RAYLIDLCD();
voidbegin();
voidclear();
voiddisplay_on();
voiddisplay_off();
voidbrightness(U8 n);
voiddraw_pixel(U8 x,U8 y);
voiddelete_pixel(U8 x,U8 y);
voiddraw_line(U8 x1,U8 y1,U8 x2,U8 y2);
voiddelete_line(U8 x1,U8 y1,U8 x2,U8 y2);
voiddraw_rectangle(U8 x1,U8 y1,U8 x2,U8 y2);
voiddelete_rectangle(U8 x1,U8 y1,U8 x2,U8 y2);
voiddraw_fill_rectangle(U8 x1,U8 y1,U8 x2,U8 y2);
voiddelete_fill_rectangle(U8 x1,U8 y1,U8 x2,U8 y2);
voiddraw_circle(U8 x,U8 y,U8 r);
voiddelete_circle(U8 x,U8 y,U8 r);
voiddraw_fill_circle(U8 x,U8 y,U8 r);
voiddelete_fill_circle(U8 x,U8 y,U8 r);
万花谷浏览器voidinversely_area(U8 x1,U8 y1,U8 x2,U8 y2);
voiddisplay_bmp(U16 n);
voiddisplay_bmp_block(U16 n,U8 px,U8 py,U8 x,U8 y,U8 w,U8 h);      voidcursor(U8 x,U8 y);
谷物大脑在线阅读
void spacing(U8 xs,U8 ys);
voidfont_revers_on();
voidfont_revers_off();
void print_U32_5x7(U32 n);
voidprint_U32_6x12(U32 n);
voidprint_U32_8x16(U32 n);
voidprint_U32_5x7_xy(U8 x,U8 y,U32 n);
voidprint_U32_6x12_xy(U8 x,U8 y,U32 n);
voidprint_U32_8x16_xy(U8 x,U8 y,U32 n);
voidprint_string_12(CCHAR *ptr);
voidprint_string_16(CCHAR *ptr);
voidprint_string_12_xy(U8 x,U8 y,CCHAR *ptr);
voidprint_string_16_xy(U8 x,U8 y,CCHAR *ptr);
voidprint_string_5x7(CCHAR *ptr);
voidprint_string_6x12(CCHAR *ptr);
voidprint_string_8x16(CCHAR *ptr);
voidprint_string_5x7_xy(U8 x,U8 y,CCHAR *ptr);
voidprint_string_6x12_xy(U8 x,U8 y,CCHAR *ptr);
voidprint_string_8x16_xy(U8 x,U8 y,CCHAR *ptr);pnas
};

本文发布于:2024-09-22 08:18:25,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/25213.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:信号   模块   市场   贴装   法及
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议