#include <stdio.h>
#include <math.h>
#include <reg52.h>
#include <string.h>
unsigned char code IC_DAT[];
unsigned char code pic1[];
unsigned char code pic2[];
unsigned char code pic3[];
sbit RS =P2^4;
sbit WRD=P2^5;
sbit E= P2^6;
sbit PSB=P2^1;
sbit RES=P2^3;
void TransferData(char data1,bit DI);
void display(void);
void display_grapic(void);
void delayms(unsigned int n);
void DisplayLine(unsigned char line1,unsigned char line2);
void DisplayGraphic(unsigned char code *adder);
void delay(unsigned int m);
void lcd_mesg(unsigned char code *adder1);
unsigned char code IC_DAT[]={
" 上海浩豚电子科技 "
" 单片机开发板系列 "
" 中文字库测试程序 "
" 恭喜发财身体健康 "
};
unsigned char code IC_DAT2[]={
" 海纳百川宽容为先 "
" 欲成大业诚信为先 "
" 游弋商海济世为先 "
" 人立于世守法为先 "
};
void initinal(void) //LCD 字库初始化程序
{
delay(40); // 大于 40MS 的延时程序
PSB=1; // 设置为 8BIT 并口工作模式
delay(1); // 延时
RES=0; // 复位
delay(1); // 延时
RES=1; // 复位置高