资源描述:
《12864液晶显示程序(图案文字) 》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、includesbitLCD12864_RS=P2八0;//RS控制引脚sbitLCD12864_RW=P2A1;//RW控制引脚sbitLCD12864_EN=P2A2;//EN控制引脚sbitLCD12864_PSB=P2A3;//模式选择引脚,ST7920控制器,1为8位并行接口,0为串行接口#defineLCDPORTP0//数据引脚voidLCD12864_lnit(void);//LCD12864初始化函数voidLCD12864_Writelnfomation(unsignedcharucData,bitbComOrData);//向LCD12864写入
2、数据,bComOrData为1时写入的是数据,0时写入的是命令voidLCD12864_CheckBusy(void);//忙检测函数voidLCD12864_Displaylmage(unsignedcharcode*uclmage);voidDelay(unsignedintuiCount);unsignedcharcodeucPicl[]={0x00,0xOO,0x00,0x00,0x00,0x00,0x00,0x14,Ox00,0x00,0x00,0x00,0x00,0xOO?OxOO,OxOQ,0x00,0x06,0x30,0x01,OxE0,0x00,0x00,0x2A,0
3、x00,0x00,0xD8,0x00,0x00,0x00,0x00,0x00,Ox00,0x0F,0x7B,0x63,0xE0,0xOO,0x00,0x22,0x00,0x01,0x24,0x00,Ox00,0x00,0x00,0x00,0x00,0x0F,0xFB,0x63,0x07,0x34,0x00,0x14,Ox00,0x01,0x04,0x00,0x00,0xOO,0x00,0x00,0x00,0x0D,0xDB,0x63,Ox01,0xBC,0x00,0x08,0x00,0xOO,0x88,0x00,0x00,0x00,0x00,0x00,Ox00,0x0C,0xlB,0x
4、63,0x07,0xBO,0x00,0x00,0x00,0x00,0x50,0x00,Ox00,0x00,0x00,0x00,0x00,0x0C,0xlB,0x63,0xED,0xB0,0xDB,0x00,0x01,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,OxOC,0x19,OxEl,OxE7,0xB0,0xDB,0x00,0x02,0xOO,0x00,0x00,0x00,0x00,0x00,0x00,Ox00,0x0C,0xl9,0xEl,0xE7,0xB0,0xDB,0x00,0x02,0x00,0x00,0x00,Ox00,0x00,0x0
5、0,0x00,0x00,0xOO,0x00,0x60,0x00,0x00,0x00,0x00,Ox04,0x00,0x00,0x00,0x00,0xOO,0x00,0x00,0x00,0x00,0x03,OxCO,Ox00,0x00,0x00,0x00,0x08,0xOO,0x00,0x00,0x00,0x00,0x00,0x00,Ox00,0x00,0x00,0x00,0x00,0xO(OxOO,OxO0,0x08,0x05,0x00,0x00,Ox00,0x00,0x00,0x00,0x00,0xOO,0x00,0x00,0x00,0x00,0x00,0x00,Ox10,0x0A
6、,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,OxOA,OxOO,OxOO,OxFF,0xF8,0xE0,0x05,0x00,0x00,0x00,0x00,0x00,0x00,Ox00,0x06,0xC0,0x15,0x00,0xlF,OxFF,OxFF,OxCO,0x02,0x00,0x00,Ox00,0x00,0x00,0x00,0x00,0x09,0x20,0x11?0x00,0xFB,0xFF,0xE1,0xF8,0x00,0x00,0x00,0x00,0xOO?OxOO,OxOQ,0x00,0x08,0x20,0x0a,Ox03,
7、0x9F,0x00,0x9E,0x3E,0xOO,0x00,0x00,0x00,0x00,0x00,0x00,Ox00,0x04,0x40,0x04,0x0^0x70,0x00,0x8l,0xC7,0x80,0x01,0x40,Ox00,0x00,0x00,0x00,0x00,0x02,0x80,0x00,0x10,0x80,0x00,OxEO,Ox61,0xE0,0x02,0xA0,0x00,0xOO,0x00,0x00,0x00,0x01,