資源描述:
《STC 12864顯示程序》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、#include#include#include#include#defineucharunsignedchar//8bit,0~255#defineuintunsignedint//16bit,0~65,535#defineulongunsignedlong//32bit,0~4,294,967,295/*-----------建立自定義演示用字符庫-----------*/ucharcodeCCTAB[]={/*--文字:實(shí)--*//*--仿宋_GB231212;此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16
2、x16--*/0x02,0x00,0x01,0x00,0x7F,0xFE,0x48,0x02,0x86,0x84,0x02,0x80,0x10,0x80,0x0C,0x80,0x04,0x84,0xFF,0xFE,0x01,0x00,0x01,0x40,0x02,0x20,0x04,0x10,0x18,0x0C,0x60,0x04,/*--文字:驗(yàn)--*//*--仿宋_GB231212;此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16--*/0x08,0x40,0xFC,0x40,0x08,0xA0,0x48,0xA0,0x49,0x10,0x4A,0x0E,0x4D,0xF4,0x4
3、8,0x00,0x7C,0x48,0x06,0x48,0x05,0x48,0x1D,0x50,0xE5,0x10,0x44,0x24,0x17,0xFE,0x08,0x00,/*--文字:中--*//*--仿宋_GB231212;此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16--*/0x01,0x00,0x01,0x00,0x01,0x04,0x7F,0xFE,0x41,0x04,0x41,0x04,0x41,0x04,0x41,0x04,0x7F,0xFC,0x41,0x04,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x0
4、1,0x00};ucharcodesymbo[]={/*--調(diào)入了一幅圖像:D:guoqfilestechnicsupportpic128x32Symbo.bmp--*//*--寬度x高度=128x32--*/0x00,0x07,0xFF,0x00,0x00,0x00,0x00,0x00,0x1F,0xC0,0x00,0x1F,0xC0,0x03,0xE0,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x10,0x20,0x00,0x20,0x40,0x04,0x10,0x00,0x00,0x04,0x01,0x00,0x0
5、0,0x00,0x00,0x00,0x10,0x10,0x00,0x40,0x40,0x08,0x08,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x10,0x08,0x00,0x80,0x40,0x08,0x08,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x10,0x04,0x01,0x00,0x40,0x08,0x08,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x10,0x02,0x02,0x00,0x40,0x08,0x08,
6、0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x10,0x01,0x04,0x00,0x40,0x08,0x08,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x88,0x00,0x80,0x04,0x10,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x50,0x01,0x00,0x03,0xE0,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x02,0x
7、00,0x20,0x02,0x00,0x00,0x00,0x00,0x1F,0xFC,0x01,0xFF,0xDF,0xFF,0xFF,0xFF,0xC1,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x40,0x80,0x00,0x08,0x1F,0xFF,0xFF,0xF8,0x10,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x40,0x40,0x00,