资源描述:
《STC 12864显示程序》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、#include#include#include#include#defineucharunsignedchar//8bit,0~255#defineuintunsignedint//16bit,0~65,535#defineulongunsignedlong//32bit,0~4,294,967,295/*-----------建立自定义演示用字符库-----------*/ucharcodeCCTAB[]={/*--文字:实--*//*--仿
2、宋_GB231212;此字体下对应的点阵为:宽x高=16x16--*/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,/*--文字:验--*//*--仿宋_GB231212;此字体下对应的点阵为:宽x高=16x16--*/0x08,0x40,0xFC,0x
3、40,0x08,0xA0,0x48,0xA0,0x49,0x10,0x4A,0x0E,0x4D,0xF4,0x48,0x00,0x7C,0x48,0x06,0x48,0x05,0x48,0x1D,0x50,0xE5,0x10,0x44,0x24,0x17,0xFE,0x08,0x00,/*--文字:中--*//*--仿宋_GB231212;此字体下对应的点阵为:宽x高=16x16--*/0x01,0x00,0x01,0x00,0x01,0x04,0x7F,0xFE,0x41,0x04,0x41,0x04,0x41,0x04
4、,0x41,0x04,0x7F,0xFC,0x41,0x04,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00};ucharcodesymbo[]={/*--调入了一幅图像:D:guoqfilestechnicsupportpic128x32Symbo.bmp--*//*--宽度x高度=128x32--*/0x00,0x07,0xFF,0x00,0x00,0x00,0x00,0x00,0x1F,0xC0,0x00,0x1F,0xC0,0x03,0
5、xE0,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x10,0x20,0x00,0x20,0x40,0x04,0x10,0x00,0x00,0x04,0x01,0x00,0x00,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,
6、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,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
7、,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,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x1F,0xFC,0x01,0xFF,0xDF,0xFF,0xFF,0xFF,0xC1,0x00,0x00,0x04,0x0
8、0,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,