资源描述:
《液晶屏点阵显示图片.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、这是lcd12864液晶静态显示图片的程序,本人采用的是郭天祥的板子,具体电路连接见下图请各位读者具体的结合自己手上的板子及资料好好分析,下面的程序做了简单的注释,请读者自行仔细分析,一定要结合自己手上的板子及资料结合下面的程序,写出适合自己的程序,不要全盘的复制粘贴,不然要出错的哦!!!#includetypedefunsignedcharunchar;typedefunsignedintunint;sbitLCD_RS=P3^5;sbitLCD_WS=P3^6;sbitLCD_ENABLE=P3^
2、4;sbitLCD_PSB=P3^7;/*********************************************************************图形字模(可以随意改写)**********************************************************************/codeuncharconstant[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0
3、0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
4、0x00,0x00,0x00,0x00,0x00,0x18,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x
5、1E,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x00,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xE0,0x00,0x00,0x0F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x80,0x00,0x00,0x03,0xE0
6、,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xF0,0x00,0x20,0x3F,0x00,0x0F,0xE0,0x00,0x00,0x00,0
7、x00,0x00,0x00,0x00,0x00,0x1F,0xC0,0x20,0x30,0x30,0x87,0xC3,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x0C,0x18,0x30,0x46,0x03,0x20,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFC,0x06,0xEC,0x18,0x63,0x02,0x00,0x3F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x0
8、7,0xF0,0x03,0x06,0x00,0x0E,0x06,0x00,0x0F,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xC0,0x01,0x80,0x00,0x00,0x04,0x00,0x03,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x00