![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LCD1602
文章平均质量分 59
蓝凌y
这个作者很懒,什么都没留下…
展开
-
LCD1602的指令
LCD1602的指令/*** 选择命令 ***/void cmd_chooes(uchar cmd){ switch(cmd) { case 0 :write_cd(0,0x01);break; //清显示 case 1 :write_cd(0,0x02);break; //复位光标 case 2 :write_cd(0,0x04);break; //光标左移一个,AC减1 case 3 :write_cd(0,0x05);break; //字符全部右移一格,光标不动原创 2020-05-18 18:51:07 · 2072 阅读 · 0 评论 -
LCD1602的使用驱动
LCD1602使用方法仿真图。#include <reg51.h>#define uchar unsigned char#define uint unsigned intsbit RS = P1^0;sbit RW = P1^1;sbit E = P1^2;sbit D7 = P2^7;void write_code(uchar row, uchar col, uchar *p);void LCD_init();void main(){ LCD_init()原创 2020-05-18 18:48:01 · 319 阅读 · 1 评论