资源描述:
《12864点阵液晶显示测试程序(带字库)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、12864点阵液晶显示测试程序(带字库)接口说明112864-1测试程序:#include#defineuint unsignedint#defineucharunsignedchar#definex1 0x80#definex2 0x88#definey 0x80#definecomm 0#definedat 1sbitrs=P1^1; //H=data;L=command;sbitrw=P1^2; //H=read;L=write;sbit e=P1^3; //
2、inputenable;sbitpsb=P1^4; //H=并口;L=串口;sbitrst=P1^5; //ResetSignal低电平有效sbitbusy=P2^7; //lcdbusybitvoidwr_lcd(uchardat_comm,ucharcontent);voidchk_busy(void);voiddelay(uintus);ucharcodetab1[]={" 床前明月光,"" 疑是地上霜, ""举头望明月, ""低头思故乡。 "};ucharcodetab31[
3、]={"你的选择""没有错 "};ucharcodetab32[]={/*-- 调入了一幅图像:D:Backup桌面未命名1.bmp --*//*-- 宽度x高度=128x32 --*/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
4、,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
5、,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,0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