資源描述:
《12864液晶顯示程序(圖案文字) 》由會員上傳分享,免費在線閱讀,更多相關內容在工程資料-天天文庫。
1、includesbitLCD12864_RS=P2八0;//RS控制引腳sbitLCD12864_RW=P2A1;//RW控制引腳sbitLCD12864_EN=P2A2;//EN控制引腳sbitLCD12864_PSB=P2A3;//模式選擇引腳,ST7920控制器,1為8位并行接口,0為串行接口#defineLCDPORTP0//數(shù)據(jù)引腳voidLCD12864_lnit(void);//LCD12864初始化函數(shù)voidLCD12864_Writelnfomation(unsignedcharucData,bitbComOrData);//向LCD12864寫入
2、數(shù)據(jù),bComOrData為1時寫入的是數(shù)據(jù),0時寫入的是命令voidLCD12864_CheckBusy(void);//忙檢測函數(shù)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,