您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 酒店餐饮 > LCD12864显示程序(成功版)
#includereg51.h#includeintrins.h#defineuintunsignedint#defineucharunsignedchar//--定时使用的IO口--//#defineDATA_PORTP0sbitLCD12864_CS=P3^2;sbitLCD12864_RSET=P3^3;sbitLCD12864_RS=P2^6;sbitLCD12864_RW=P2^7;sbitLCD12864_RD=P2^5;//--定义全局函数--//voidLcdSt7565_WriteCmd(cmd);voidLcdSt7565_WriteData(dat);voidLcd12864_Init();voidLcd12864_ClearScreen(void);voidLcd12864_Write16CnCHAR(ucharx,uchary,uchark);voidDelay10ms(unsignedintc);unsignedcharcodetable[40][32]={/*--文字:。--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x24,0x24,0x18,0x00,0x00,/*--文字:都--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x06,0xDA,0x22,0x02,0xFE,0x20,0x26,0x28,0x34,0x24,0x7F,0xA4,0x24,0x24,0x20,0x00,0x07,0x08,0x10,0x08,0xFF,0x00,0x00,0xFF,0x49,0x49,0x49,0x49,0xFF,0x02,0x04,/*--文字:皇--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x00,0x00,0x7C,0x54,0x54,0x54,0x54,0x55,0x56,0x54,0x7C,0x00,0x00,0x00,0x00,0x40,0x41,0x49,0x49,0x49,0x49,0x49,0x7F,0x49,0x49,0x49,0x49,0x49,0x41,0x40,/*--文字:满--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x24,0x24,0x2F,0xE4,0x24,0x24,0xE4,0x2F,0x24,0x24,0x00,0x8C,0x02,0x60,0x10,0x00,0x7F,0x91,0x49,0x07,0x09,0x19,0x07,0x09,0x11,0xFF,0x00,0x01,0x7E,0x04,0x04,/*--文字:柳--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0xFC,0x04,0x04,0xFC,0x00,0xF8,0x02,0x04,0xFC,0x10,0x90,0xFF,0xD0,0x10,0x10,0x00,0x07,0x08,0x04,0xFF,0x00,0x0F,0x32,0x44,0x8F,0x01,0x00,0xFF,0x00,0x03,0x04,/*--文字:烟--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0xFE,0x42,0x42,0x42,0xFA,0x42,0x42,0x42,0xFE,0x08,0x10,0xFF,0x00,0x70,0x80,0x00,0xFF,0x40,0x4C,0x42,0x41,0x46,0x48,0x50,0xFF,0x10,0x08,0x07,0x18,0x60,0x80,/*--文字:胜--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x10,0x10,0x10,0xFF,0x10,0x10,0x3C,0x40,0x00,0xFE,0x22,0x22,0xFE,0x00,0x00,0x40,0x42,0x42,0x42,0x7F,0x42,0x42,0x42,0x40,0x00,0xFF,0x82,0x02,0x7F,0x80,/*--文字:绝--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0xE0,0x2C,0x34,0xE4,0x24,0x27,0xE8,0x10,0x20,0x10,0x63,0xAC,0x30,0x20,0x00,0x70,0x43,0x42,0x42,0x43,0x42,0x42,0x3F,0x00,0x00,0x12,0x12,0x22,0x67,0x22,/*--文字:,--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x58,0x00,0x00,/*--文字:处--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x80,0x40,0x20,0x10,0xFF,0x00,0x00,0xF8,0x08,0x08,0x9F,0x60,0x80,0x00,0x00,0x40,0x41,0x40,0x40,0x40,0x5F,0x40,0x20,0x20,0x13,0x0C,0x13,0x20,0x40,0x81,/*--文字:好--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x80,0x86,0x8A,0x92,0xE2,0x82,0x82,0x80,0x00,0xF0,0x10,0x1F,0xF0,0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x7F,0x80,0x40,0x00,0x00,0x61,0x16,0x08,0x15,0x22,0x40,/*--文字:春--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x40,0x44,0x54,0x54,0xD4,0x54,0x54,0x5F,0x74,0x54,0xD4,0x54,0x54,0x44,0x40,0x00,0x04,0x04,0x02,0x01,0xFE,0x92,0x92,0x92,0x92,0x92,0xFE,0x01,0x02,0x04,0x04,/*--文字:年--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x04,0x44,0x44,0x44,0x44,0xFC,0x44,0x44,0x44,0x44,0xC7,0x18,0x20,0x00,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0xFF,0x04,0x04,0x04,0x04,0x07,0x04,0x04,0x04,/*--文字:一--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*--文字:是--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x00,0x00,0x7F,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x7F,0x00,0x00,0x00,0x00,0x81,0x81,0x89,0x89,0x89,0x89,0x89,0xFF,0x81,0x41,0x21,0x1D,0x21,0x41,0x81,/*--文字:最--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x40,0x40,0x40,0x5F,0x55,0x55,0x55,0x55,0xD5,0x55,0x55,0x5F,0xC0,0x40,0x40,0x00,0x80,0x80,0x43,0x2D,0x11,0x29,0x47,0x90,0xFF,0x15,0x15,0x25,0x3F,0x60,0x20,/*--文字:。--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x24,0x24,0x18,0x00,0x00,/*--文字:无--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x40,0x40,0x42,0x42,0x42,0xC2,0x42,0x7E,0xC2,0x42,0x42,0x42,0x40,0x00,0x00,0x00,0x70,0x40,0x40,0x40,0x40,0x3F,0x00,0x00,0x03,0x0C,0x10,0x20,0x40,0x80,/*--文字:却--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0xFC,0x04,0x04,0x04,0xFC,0x80,0x88,0x88,0x88,0xFF,0x88,0x88,0x88,0x80,0x00,0x00,0x0F,0x10,0x08,0x00,0xFF,0x00,0x30,0x18,0x14,0x10,0x13,0x14,0x38,0x10,/*--文字:近--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x20,0x22,0x23,0xE2,0x24,0x24,0x24,0xFC,0x00,0x00,0x00,0xCC,0x42,0x40,0x40,0x00,0x40,0x40,0x40,0x5F,0x40,0x40,0x40,0x43,0x4C,0x50,0x20,0x1F,0x20,0x40,0x00,/*--文字:看--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x20,0x20,0x29,0x29,0x29,0x29,0x29,0x2E,0x3A,0x6A,0xAA,0x2A,0x2A,0x22,0x20,0x00,0x00,0x00,0x00,0xFF,0x55,0x55,0x55,0x55,0x55,0x55,0xFF,0x01,0x02,0x04,0x08,/*--文字:遥--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x2D,0x31,0x21,0xF1,0x2A,0x22,0x32,0x4A,0x00,0x00,0xCC,0x42,0x40,0x40,0x00,0x81,0xBD,0xA1,0xA1,0xBF,0xA1,0xA1,0xBD,0x81,0x80,0x40,0x3F,0x40,0x80,0x00,/*--文字:色--*//*--宋体12;此字体下对应的点阵为:宽x高=1
本文标题:LCD12864显示程序(成功版)
链接地址:https://www.777doc.com/doc-5050056 .html