摘要:
//1602.h#include <reg52.h>//数据类型定义typedef unsigned char uchar;typedef unsigned int uint;//1602指令定义//屏幕初始化#define SCREEN_INIT 0x38 //屏幕设置:16*2行,5*7点阵,8位数据接口//光标及屏幕显示设置#define SHOW_SCREEN 0x0C //屏幕显示#define HIDE_SCREEN 0x08 //屏幕不显示#define SHOW_CURSOR 0x02 //显示光标#define FLASH_CURSOR 0x01 //光标闪烁// 阅读全文