资源描述:
《MSP430驱动12864-3图形点阵液晶(KS0108)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、MSP430驱动12864-3图形点阵液晶(KS0108)作者:jdzj868来源:机电之家下载站录入:jdzj868更新时间:2009-12-716:44:28点击数:0【字体:】#include//***************数据类型定义****************************#defineuintunsignedint#defineucharunsignedchar//***************液晶控制线定义****************************#define
2、RSBIT1//P3.1#defineRWBIT0//P3.0#defineEBIT7//P2.7#defineCS1BIT3//P3.3#defineCS2BIT2//P3.2#defineRSTBIT1//P2.1//数据线:p4口//**************汉字定义为16*16,纵向,大小10,D0--D7,字体TimesNewRoman**************constunsignedcharcode1[]={64,66,66,66,254,66,66,66,66,254,66,67,98,64,0,0,32,32,
3、16,8,7,0,0,0,0,63,0,0,0,0,0,0};//开constunsignedcharcode2[]={8,8,248,15,8,248,32,48,44,35,32,40,48,96,0,0,32,17,10,4,10,17,0,63,17,17,17,17,63,0,0,0};//始constunsignedcharcode3[]={8,8,136,255,72,72,4,4,4,4,252,4,6,4,0,0,1,17,32,31,0,0,0,0,16,32,31,0,0,0,0,0};//打constunsi
4、gnedcharcode4[]={0,252,68,68,66,67,2,0,252,4,4,4,252,0,0,0,0,15,8,4,4,2,2,0,63,0,2,4,3,0,0,0};//印constunsignedcharcode5[]={4,4,132,196,52,12,23,20,20,212,52,20,6,4,0,0,2,1,0,63,0,1,1,17,33,31,1,1,1,1,0,0};//存constunsignedcharcode6[]={64,32,248,7,64,204,32,40,168,255,16
5、8,176,172,32,0,0,0,0,63,0,0,31,10,1,63,20,20,20,63,0,0,0};//储constunsignedcharcode7[]={16,97,134,64,254,2,250,2,254,0,252,0,255,0,0,0,2,62,1,32,19,8,7,8,51,0,19,32,31,0,0,0};//测constunsignedcharcode8[]={0,32,32,190,170,170,170,170,170,170,170,191,34,32,0,0,0,32,40,47,4
6、2,42,42,63,42,42,42,47,40,32,0,0};//量constunsignedcharcode9[]={32,33,230,0,128,136,136,255,136,136,255,136,136,136,0,0,16,8,7,8,16,40,36,35,32,32,47,32,32,32,0,0};//进constunsignedcharcode10[]={16,136,68,227,24,32,34,34,34,34,226,35,50,32,0,0,1,0,0,63,0,0,0,0,16,32,31,0
7、,0,0,0,0};//行constunsignedcharcode11[]={0,248,8,8,8,8,255,8,8,8,8,252,8,0,0,0,0,1,1,1,1,1,63,1,1,1,1,1,0,0,0,0};//中constunsignedcharcode12[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,8,0,0,0,8,0,0,0,0,0,0};//点constunsignedcharcode100[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
8、,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32};//线//******************函数声明*******************************voidInit_