使用st7565R芯片的12864液晶驱动和资料-_单色COG液晶的规格书和源代码例程等
单片机源程序:
- /**********************************/
- /* IC:ST7565 */
- /* Date:09-07-23 */
- /**********************************/
- /**********************************/
- /* Head File Define */
- /**********************************/
- #include <reg51.h>
- #include <E:\driver_prg\image\char.h>
- //#include <math.h>
- //#include <intrins.h>
- /**********************************/
- /* Interface Define */
- /**********************************/
- sbit RESET=P3^0;
- sbit CD=P3^4;
- sbit CS=P3^2;
- sbit SCL=P1^6;
- sbit SDA=P1^7;
- sbit KEY_PRESS=P3^3;
- sbit DEC_KEY=P3^1;
- sbit EXIT_KEY=P3^7;
- /**********************************/
- /* Parameter Define */
- /**********************************/
- #define CONTRAST=0x0C
- #define DATA0=0x40
- #define DATA1=0x41
- unsigned char page_width;
- unsigned char seg_width;
- unsigned char Buf_1,Buf_2,Buf_3,conversion;
- unsigned char *char_point;
- int contrast;
- /**********************************/
- /* Picture data */
- /**********************************/
- unsigned char code row_table[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
- unsigned char code char_0[]={62,65,65,62,0 };
- unsigned char code char_1[]={0,66,127,64,0 };
- unsigned char code char_2[]={98,81,73,70,0};
- unsigned char code char_3[]={34,73,73,54,0 };
- unsigned char code char_4[]={28,18,127,16,0 };
- unsigned char code char_5[]={39,69,69,57,0};
- unsigned char code char_6[]={62,73,73,50,0};
- unsigned char code char_7[]={1,121,7,1,0};
- unsigned char code char_8[]={54,73,73,54,0 };
- unsigned char code char_9[]={6,73,73,62,0};
- unsigned char code orise_tech[]={
- /*-- 调入了一幅图像:C:\Documents and Settings\xuanquan.wang\My Documents\BMP\Made myself\MONO\orise-12864.bmp --*/
- /*-- 宽度x高度=128x64 --*/
- 0xFF,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
- 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
- 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
- 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
- 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
- 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
- 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
- 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0xFF,
- 0xFF,0x00,0xFC,0x02,0x01,0x01,0x01,0x01,0x01,0x01,0x81,0x41,0x41,0x41,0x41,0x41,
- 0x41,0x41,0x42,0xFC,0x40,0x40,0x40,0x40,0x40,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x20,0xFE,0xFE,0x20,0xE0,0xE0,0x00,0xFC,
- 0xFC,0x04,0x04,0x04,0x04,0x04,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0x0C,0x3C,0x30,
- 0xFE,0xFE,0x70,0x4C,0x6E,0x6E,0xBA,0xB2,0x7E,0xFE,0xCA,0x7A,0x3A,0x32,0x7E,0x7C,
- 0x00,0x00,0x00,0x20,0x22,0x22,0xE2,0xFE,0xFE,0xA2,0x20,0x40,0xC6,0x8E,0x1C,0x18,
- 0x30,0x20,0xFE,0xFE,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0xFE,0xFE,0x10,0x08,
- 0x48,0xC8,0x48,0x48,0x7E,0x7E,0x48,0x48,0xC8,0x88,0x88,0x08,0x00,0x00,0x00,0xFF,
- 0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0xC0,
- 0x20,0x10,0x90,0x7F,0x10,0x10,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0x20,
- 0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0xFF,0x3F,0x00,0xFF,0xFF,0x00,0x7F,
- 0x7F,0x41,0x41,0x41,0x41,0x41,0x7F,0x7F,0xC0,0xC0,0x00,0x00,0x00,0x01,0xC1,0xFF,
- 0x3F,0xFF,0xFF,0x49,0x4C,0xFF,0xFF,0x53,0x52,0x52,0xFF,0xFF,0x52,0x52,0x52,0x52,
- 0x00,0x00,0x00,0x20,0x38,0x1E,0x07,0xFF,0xFF,0x03,0x2C,0x20,0x20,0x21,0x23,0x26,
- 0x24,0x20,0xFF,0xFF,0x10,0x10,0x00,0x00,0x00,0x10,0x18,0x08,0xFF,0xFF,0x06,0x02,
- 0x00,0x87,0x9E,0x78,0x60,0x60,0xB8,0x9C,0x8F,0x03,0x00,0x00,0x00,0x00,0x00,0xFF,
- 0xFF,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x3F,0x41,0x81,0x81,0x81,0x81,0xFF,
- 0x81,0x81,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x40,0x3F,0x00,0x00,0x00,0x00,0x00,
- 0xFF,0x00,0x00,0x00,0x00,0x00,0x02,0x03,0x01,0x00,0x00,0x00,0xE1,0xE3,0x22,0x22,
- 0x22,0x22,0x22,0x22,0x22,0xE2,0xE2,0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,0x01,
- 0x00,0x00,0x00,0x00,0x00,0x03,0x03,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x03,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x03,0x03,0x03,0x01,
- 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x03,0x02,0x00,0x00,0x00,0xFF,
- 0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,
- 0x10,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x10,
- 0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x3F,0x20,0x20,
- 0x20,0x20,0x20,0x20,0x20,0x3F,0x3F,0x00,0x00,0x3F,0x3F,0x05,0x0D,0x1D,0x37,0x27,
- 0x00,0x00,0x3F,0x3F,0x00,0x00,0x27,0x27,0x25,0x25,0x3D,0x3D,0x00,0x00,0x3F,0x3F,
- 0x25,0x25,0x25,0x21,0x00,0x00,0x00,0x00,0x01,0x01,0x3F,0x3F,0x01,0x01,0x00,0x00,
- 0x3F,0x3F,0x25,0x25,0x25,0x21,0x00,0x00,0x3F,0x3F,0x21,0x21,0x21,0x33,0x00,0x00,
- 0x3F,0x3F,0x04,0x04,0x04,0x3F,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
- 0xFF,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,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,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,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
- 0xFF,0x00,0x00,0xFE,0xFE,0x08,0xF8,0xF0,0x08,0xFC,0xFE,0x08,0xFC,0xFE,0x08,0xF8,
- 0xF8,0x08,0xF8,0xF0,0x00,0x08,0x08,0x00,0xE0,0xFE,0x1E,0x00,0xE0,0xFE,0x1E,0x00,
- 0x00,0x38,0xF8,0xC0,0x38,0xC0,0xF8,0x38,0x38,0xF8,0xC0,0x38,0xC0,0xF8,0x38,0x38,
- 0xF8,0xC0,0x38,0xC0,0xF8,0x38,0x00,0x00,0x00,0xF0,0xF8,0x08,0xF8,0xF0,0x00,0xF8,
- 0xF8,0x08,0x08,0xFA,0xFA,0x00,0xB0,0x38,0xC8,0xD0,0x00,0xF0,0xF8,0x28,0xB0,0x08,
- 0xFC,0xFE,0x08,0xF0,0xF8,0x28,0xB0,0x00,0xF0,0xF8,0x08,0x90,0x00,0xFE,0xFE,0x08,
- 0xF8,0xF0,0x00,0x00,0x00,0x00,0xF0,0xF8,0x08,0x90,0x00,0xF0,0xF8,0x08,0xF8,0xF0,
- 0x00,0xF8,0xF8,0x08,0xF8,0xF0,0x08,0xF8,0xF0,0x00,0xE0,0xFE,0x1E,0x00,0x00,0xFF,
- 0xFF,0x80,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x81,0x81,0x87,
- 0x87,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x80,
- 0x80,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,
- 0x81,0x81,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x81,0x80,0x80,0x81,
- 0x81,0x80,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x80,0x80,0x81,0x81,0x80,0x80,
- 0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,
- 0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x80,0x80,0x81,0x81,0x81,0x80,
- 0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x80,0xFF
- };
- unsigned char code description1[]={
- /*-- 宽度x高度=128x64 --*/
- 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x01,
- 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x00,0x07,0x00,0x00,0x06,0x00,0x0E,0x00,0x00,0x01,
- 0x80,0x00,0x7F,0xFF,0xFC,0x00,0xFF,0xFF,0xFF,0xFC,0x1F,0x00,0x0E,0x00,0x00,0x01,
- 0x80,0x00,0x7F,0xFF,0xFC,0x00,0xFF,0xFF,0xFF,0xFC,0x1F,0x00,0x0E,0x00,0x00,0x01,
- 0x80,0x00,0x70,0x00,0x1C,0x00,0xFF,0xFF,0xFF,0xFC,0x0F,0x8F,0xFF,0xFE,0x00,0x01,
- 0x80,0x00,0x70,0x00,0x1C,0x00,0x00,0x07,0x00,0x00,0x07,0x8F,0xFF,0xFE,0x00,0x01,
- 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x0F,0xFF,0xFF,0xE0,0x07,0xCF,0xFF,0xFE,0x00,0x01,
- 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x1F,0xFF,0xFF,0xE0,0x03,0x8F,0x0E,0x0E,0x00,0x01,
- 0x80,0x00,0x70,0x00,0x1C,0x00,0x0F,0xFF,0xFF,0xE0,0x03,0x0F,0x0E,0x0E,0x00,0x01,
- 0x80,0x00,0x70,0x00,0x1C,0x00,0x0E,0x07,0x01,0xE0,0x00,0x0F,0x0E,0x0E,0x00,0x01,
- 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x0F,0xFF,0xFF,0xE0,0x00,0x0F,0x0E,0x0E,0x00,0x01,
- 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x0F,0xFF,0xFF,0xE0,0x00,0x0F,0x0E,0x0E,0x00,0x01,
- 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x0F,0xFF,0xFF,0xE0,0x7F,0x8F,0x0E,0x0E,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x0E,0x07,0x01,0xE0,0x7F,0x8F,0xFF,0xFE,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x0F,0xFF,0xFF,0xE0,0x7F,0x8F,0xFF,0xFE,0x00,0x01,
- 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x0F,0xFF,0xFF,0xE0,0x07,0x8F,0xFF,0xFE,0x00,0x01,
- 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x1F,0xFF,0xFF,0xE0,0x07,0x8F,0x0E,0x0E,0x00,0x01,
- 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x00,0x07,0x03,0x80,0x07,0x8F,0x0E,0x0E,0x00,0x01,
- 0x80,0x07,0x81,0xCF,0x03,0xC0,0x00,0x07,0x07,0xE0,0x07,0x8F,0x0E,0x0E,0x00,0x01,
- 0x80,0x07,0x81,0xCF,0x03,0xC0,0x7F,0xFF,0xFF,0xF0,0x07,0x8F,0x0E,0x0E,0x00,0x01,
- 0x80,0x07,0x81,0xCF,0x03,0xC0,0x7F,0xFF,0xFF,0xF8,0x07,0x8F,0x0E,0x0E,0x00,0x01,
- 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x7F,0xF8,0x00,0x78,0x07,0x8F,0x0E,0x0E,0x00,0x01,
- 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x00,0x02,0x00,0x20,0x07,0x8F,0xFF,0xFE,0x00,0x01,
- 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x01,0xCF,0x00,0xC0,0x07,0x8F,0xFF,0xFE,0x00,0x01,
- 0x80,0x07,0x81,0xCF,0x03,0xC0,0x39,0xC7,0x81,0xE0,0x07,0x8F,0xFF,0xFE,0x00,0x01,
- 0x80,0x07,0x81,0xCF,0x03,0xC0,0x79,0xC7,0x80,0xF0,0x0F,0xE0,0x00,0x00,0x00,0x01,
- 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x79,0xC3,0x8C,0xF8,0x1F,0xFC,0x00,0x00,0x00,0x01,
- 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x71,0xC1,0x1E,0x7C,0x3C,0x7F,0xFF,0xFF,0xC0,0x01,
- 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0xF1,0xE0,0x1E,0x3C,0x7C,0x3F,0xFF,0xFF,0x80,0x01,
- 0x80,0x07,0x81,0xCF,0x03,0xC0,0xE1,0xFF,0xFE,0x10,0x18,0x07,0xFF,0xFF,0x80,0x01,
- 0x80,0x07,0x81,0xCF,0x03,0xC0,0xE1,0xFF,0xFC,0x00,0x00,0x00,0x7F,0xFF,0x80,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
- 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
- };
- unsigned char code description2[]={
- /*-- 宽度x高度=128x64 --*/
- 0x08,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x20,0x08,0x08,0x00,0x00,0x00,0x00,
- 0x04,0xFF,0xC2,0x40,0x80,0x20,0x01,0xFE,0x0F,0xFF,0x84,0x08,0x00,0x00,0x00,0x00,
- 0x04,0x80,0x82,0x48,0x9F,0xFF,0xC1,0x02,0x00,0x20,0x06,0x08,0x00,0x00,0x00,0x00,
- 0x00,0x24,0x02,0x48,0x80,0x20,0x01,0xFE,0x03,0xFE,0x04,0x08,0x00,0x00,0x00,0x00,
- 0x10,0x23,0x1F,0xC8,0x80,0x20,0x01,0x02,0x02,0x22,0x00,0xFF,0x80,0x00,0x00,0x00,
- 0x0A,0xC1,0x02,0x48,0x83,0xFF,0x01,0xFE,0x03,0xFE,0x00,0x88,0x80,0x00,0x00,0x00,
- 0x0A,0x08,0x02,0x48,0x82,0x21,0x01,0x02,0x02,0x22,0x1C,0x88,0x80,0x00,0x00,0x00,
- 0x02,0x08,0x02,0x48,0x82,0x21,0x00,0x00,0x03,0xFE,0x04,0xFF,0x80,0x00,0x00,0x00,
- 0x04,0xFF,0x82,0x48,0x82,0x21,0x0F,0xCF,0xC0,0x21,0x04,0x88,0x80,0x00,0x00,0x00,
- 0x04,0x08,0x02,0x48,0x82,0x21,0x08,0x48,0x4F,0xFF,0x84,0x88,0x80,0x00,0x00,0x00,
- 0x18,0x1C,0x07,0x48,0x82,0x21,0x0F,0xCF,0xC0,0x00,0x84,0x88,0x80,0x00,0x00,0x00,
- 0x08,0x2B,0x18,0x88,0x82,0x21,0x08,0x48,0x41,0x20,0x04,0xFF,0x80,0x00,0x00,0x00,
- 0x08,0xC9,0xC0,0x88,0x82,0x25,0x08,0x48,0x45,0x11,0x04,0x80,0x80,0x00,0x00,0x00,
- 0x0B,0x08,0x81,0x00,0x82,0x22,0x0F,0xCF,0xC5,0x04,0x8A,0x00,0x00,0x00,0x00,0x00,
- 0x08,0x08,0x02,0x00,0x80,0x20,0x08,0x48,0x4C,0xFC,0x91,0xFF,0xC0,0x00,0x00,0x00,
- 0x08,0x08,0x00,0x00,0x00,0x20,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x02,0x00,0x7F,0xE0,0x02,0x01,0xF7,0xF0,0x08,0x80,0x7F,0xF8,
- 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x40,0xFF,0xFD,0x24,0x10,0x0C,0x80,0x00,0x08,
- 0x00,0x00,0x00,0x00,0x7F,0xF0,0x00,0x80,0x04,0x01,0x27,0xF0,0x08,0x80,0x00,0x08,
- 0x00,0x00,0x00,0x00,0x42,0x10,0x01,0x00,0x08,0x01,0x44,0x10,0x10,0x40,0xFF,0xC8,
- 0x00,0x00,0x00,0x00,0x42,0x10,0x02,0x00,0x1F,0xE1,0x44,0x10,0x10,0x20,0x00,0x08,
- 0x00,0x00,0x00,0x00,0x7F,0xF0,0x02,0x00,0x30,0x21,0x27,0xF0,0x20,0x30,0x00,0x08,
- 0x00,0x00,0x00,0x00,0x42,0x10,0x02,0x08,0x50,0x21,0x15,0x00,0x44,0x1C,0x7F,0x88,
- 0x00,0x00,0x00,0x00,0x42,0x11,0xFF,0xFC,0x9F,0xE1,0x14,0x90,0x86,0x08,0x40,0x88,
- 0x00,0x00,0x00,0x00,0x42,0x10,0x02,0x01,0x10,0x21,0x54,0xA0,0x04,0x00,0x40,0x88,
- 0x00,0x00,0x00,0x00,0x7F,0xF0,0x02,0x00,0x10,0x21,0x24,0x40,0x08,0x40,0x7F,0x88,
- 0x00,0x00,0x00,0x00,0x42,0x10,0x02,0x00,0x1F,0xE1,0x04,0x40,0x10,0x20,0x40,0x88,
- 0x00,0x00,0x00,0x00,0x02,0x04,0x02,0x00,0x10,0x21,0x04,0x20,0x23,0xF0,0x40,0x08,
- 0x00,0x00,0x00,0x00,0x02,0x04,0x02,0x00,0x11,0x21,0x05,0x1C,0x7E,0x30,0x00,0x28,
- 0x00,0x00,0x00,0x00,0x01,0xFC,0x0A,0x00,0x10,0xE1,0x06,0x08,0x20,0x20,0x00,0x10,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x10,0x41,0x04,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x7D,0xCF,0xF9,0x8E,0xFD,0xCF,0xF9,0x8E,0x7D,0xF6,0x39,0xEE,0x7E,0x77,0xDF,0x1F,
- 0x84,0x84,0x84,0xC5,0x08,0x84,0x84,0xC4,0x10,0x43,0x12,0x24,0x24,0x21,0x08,0x84,
- 0x84,0x84,0x90,0xC4,0x08,0x84,0x90,0xC4,0x10,0x43,0x12,0x24,0x24,0x21,0x08,0x44,
- 0x80,0x84,0x90,0xA4,0x10,0x84,0x90,0xA4,0x10,0x42,0x94,0x04,0x24,0x21,0x08,0x44,
- 0x40,0x84,0xF0,0xA4,0x10,0x84,0xF0,0xA4,0x10,0x42,0x94,0x04,0x24,0x21,0x08,0x44,
- 0x30,0xFC,0x90,0x94,0x20,0xFC,0x90,0x94,0x10,0x42,0x54,0x07,0xE4,0x21,0x08,0x44,
- 0x08,0x84,0x90,0x94,0x40,0x84,0x90,0x94,0x10,0x42,0x54,0x74,0x24,0x21,0x08,0x44,
- 0x04,0x84,0x80,0x94,0x40,0x84,0x80,0x94,0x10,0x42,0x54,0x24,0x24,0x21,0x08,0x44,
- 0x84,0x84,0x84,0x8C,0x84,0x84,0x84,0x8C,0x10,0x42,0x32,0x24,0x24,0x21,0x08,0x44,
- 0x84,0x84,0x84,0x8C,0x84,0x84,0x84,0x8C,0x10,0x42,0x32,0x24,0x24,0x21,0x08,0x84,
- 0xF9,0xCF,0xF9,0xC5,0xF9,0xCF,0xF9,0xC4,0x11,0xF7,0x11,0xCE,0x73,0xC7,0xDF,0x1F,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xE0,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0xFE,0xFC,0x3E,0xE7,0xC7,0x38,0xE0,0x38,0x3C,0xEE,0x3E,0x38,0x01,0xC3,0xFB,0xE0,
- 0x92,0x42,0x42,0x42,0x62,0x44,0x40,0x44,0x44,0x44,0x42,0x44,0x00,0x82,0x49,0x10,
- 0x10,0x48,0x42,0x42,0x62,0x82,0x40,0x82,0x44,0x44,0x42,0x82,0x00,0x80,0x41,0x08,
- 0x10,0x48,0x80,0x42,0x52,0x82,0x40,0x82,0x80,0x28,0x80,0x82,0x00,0x80,0x41,0x08,
- 0x10,0x78,0x80,0x42,0x52,0x82,0x40,0x82,0x80,0x28,0x80,0x82,0x00,0x80,0x41,0x08,
- 0x10,0x48,0x80,0x7E,0x4A,0x82,0x40,0x82,0x80,0x10,0x80,0x82,0x00,0x80,0x41,0x08,
- 0x10,0x48,0x80,0x42,0x4A,0x82,0x40,0x82,0x8E,0x10,0x80,0x82,0x00,0x80,0x41,0x08,
- 0x10,0x40,0x80,0x42,0x4A,0x82,0x40,0x82,0x84,0x10,0x80,0x82,0x00,0x80,0x41,0x08,
- 0x10,0x42,0x42,0x42,0x46,0x82,0x40,0x82,0x44,0x10,0x42,0x82,0x00,0x80,0x41,0x08,
- 0x10,0x42,0x44,0x42,0x46,0x44,0x42,0x44,0x44,0x10,0x44,0x44,0xCC,0x84,0x41,0x13,
- 0x38,0xFC,0x38,0xE7,0xE2,0x38,0xFE,0x38,0x38,0x38,0x38,0x38,0xCD,0xFC,0xE3,0xE3,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
- };
- unsigned char code description3[]={
- /*-- 宽度x高度=128x64 --*/
- 0x40,0x40,0x00,0x00,0x3F,0xFC,0x00,0x00,0x40,0x40,0x00,0x00,0x20,0x90,0x20,0x80,
- 0x20,0x20,0x0F,0xF0,0x20,0x04,0x00,0x00,0x20,0x20,0x0F,0xF0,0x20,0x90,0x20,0x80,
- 0x27,0xFE,0x08,0x10,0x20,0x04,0x00,0x00,0x27,0xFE,0x08,0x10,0x27,0xFC,0x20,0x80,
- 0x09,0x20,0x0F,0xF0,0x3F,0xFC,0x00,0x00,0x09,0x20,0x0F,0xF0,0x20,0x90,0x23,0xF8,
- 0x89,0x20,0x08,0x10,0x24,0x10,0x00,0x00,0x89,0x20,0x08,0x10,0xFB,0xF8,0xF8,0x88,
- 0x52,0x7C,0x0F,0xF0,0x22,0x20,0x00,0x00,0x52,0x7C,0x0F,0xF0,0x22,0x08,0x20,0x88,
- 0x52,0x44,0x08,0x10,0x2F,0xFC,0x00,0x00,0x52,0x44,0x08,0x10,0x73,0xF8,0x20,0x88,
- 0x16,0xA8,0x00,0x00,0x22,0x20,0x00,0x00,0x16,0xA8,0x00,0x00,0x6A,0x08,0x20,0x88,
- 0x2B,0x98,0x7E,0x7E,0x22,0x20,0x00,0x00,0x2B,0x98,0x7E,0x7E,0xA3,0xF8,0x2F,0xFE,
- 0x22,0x50,0x42,0x42,0x3F,0xFE,0x00,0x00,0x22,0x50,0x42,0x42,0xA0,0x40,0x20,0x80,
- 0xE2,0x20,0x7E,0x7E,0x22,0x20,0x00,0x00,0xE2,0x20,0x7E,0x7E,0x27,0xFE,0x39,0x40,
- 0x22,0x30,0x42,0x42,0x22,0x20,0x60,0x00,0x22,0x30,0x42,0x42,0x20,0x40,0xE1,0x20,
- 0x22,0x50,0x42,0x42,0x44,0x20,0x30,0x00,0x22,0x50,0x42,0x42,0x20,0xA0,0x42,0x18,
- 0x22,0x88,0x7E,0x7E,0x44,0x20,0x10,0x00,0x22,0x88,0x7E,0x7E,0x20,0x98,0x02,0x0E,
- 0x23,0x0E,0x42,0x42,0x88,0x20,0x00,0x00,0x23,0x0E,0x42,0x42,0x21,0x0E,0x04,0x04,
- 0x22,0x04,0x00,0x00,0x10,0x20,0x00,0x00,0x22,0x04,0x00,0x00,0x26,0x04,0x08,0x00,
- 0x01,0x00,0x04,0x40,0x24,0x04,0x40,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x01,0x00,0x04,0x40,0x34,0x04,0x22,0x40,0x3F,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x3F,0xF8,0x04,0x40,0x24,0x24,0x22,0x40,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x02,0x00,0x04,0x44,0x3F,0xA4,0x03,0xFC,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x02,0x00,0x44,0x46,0x44,0x24,0x04,0x40,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0xFF,0xFE,0x24,0x4C,0x04,0x24,0x00,0x40,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x04,0x00,0x24,0x48,0x7F,0xA4,0xEF,0xFE,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x08,0x20,0x14,0x50,0x04,0x24,0x20,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0F,0xF0,0x1C,0x50,0x3F,0xA4,0x23,0xF8,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x20,0x14,0x60,0x24,0xA4,0x22,0x08,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x40,0x04,0x40,0x24,0xA4,0x22,0x08,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x02,0x80,0x04,0x40,0x24,0xA4,0x23,0xF8,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x01,0x00,0x04,0x44,0x24,0x84,0x22,0x08,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x80,0xFF,0xFE,0x27,0x84,0x50,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x40,0x00,0x00,0x05,0x14,0x8F,0xFE,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x04,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x01,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x01,0x00,0x20,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x01,0x00,0x33,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x3F,0xF8,0x20,0x20,0x00,0x00,0x3C,0x18,0x18,0x1C,0x7E,0x1C,0x18,0x7E,0x00,0x00,
- 0x21,0x08,0x00,0x20,0x00,0x00,0x42,0x24,0x24,0x24,0x44,0x24,0x24,0x40,0x00,0x00,
- 0x21,0x08,0x07,0xFE,0x00,0x00,0x42,0x42,0x42,0x40,0x44,0x40,0x42,0x40,0x00,0x00,
- 0x3F,0xF8,0xF0,0x20,0x00,0x00,0x42,0x42,0x42,0x40,0x08,0x40,0x42,0x40,0x00,0x00,
- 0x21,0x08,0x10,0x20,0x00,0x00,0x04,0x42,0x42,0x58,0x08,0x58,0x42,0x58,0x00,0x00,
- 0x21,0x08,0x10,0x20,0x00,0x00,0x04,0x26,0x42,0x64,0x10,0x64,0x42,0x64,0x00,0x00,
- 0x21,0x08,0x11,0xFC,0x30,0x00,0x08,0x1A,0x42,0x42,0x10,0x42,0x42,0x02,0x00,0x00,
- 0x3F,0xF8,0x11,0x04,0x30,0x00,0x10,0x02,0x42,0x42,0x10,0x42,0x42,0x02,0x00,0x00,
- 0x21,0x08,0x11,0x04,0x00,0x00,0x20,0x02,0x42,0x42,0x10,0x42,0x42,0x42,0x00,0x00,
- 0x01,0x02,0x15,0x04,0x30,0x00,0x42,0x24,0x24,0x24,0x10,0x24,0x24,0x44,0x00,0x00,
- 0x01,0x02,0x19,0xFC,0x30,0x00,0x7E,0x38,0x18,0x18,0x10,0x18,0x18,0x38,0x00,0x00,
- 0x00,0xFE,0x11,0x04,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,
- 0x10,0x40,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x18,0x48,0x01,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x17,0xFC,0x7F,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x20,0x40,0x02,0x00,0x00,0x00,0x3C,0x7E,0x3C,0x1C,0x04,0x3C,0x1C,0x04,0x00,0x00,
- 0x20,0x80,0x0F,0xF0,0x00,0x00,0x42,0x44,0x42,0x24,0x0C,0x42,0x24,0x0C,0x00,0x00,
- 0x60,0x84,0x08,0x10,0x00,0x00,0x42,0x44,0x42,0x40,0x14,0x42,0x40,0x14,0x00,0x00,
- 0xAF,0xFE,0x0F,0xF0,0x00,0x00,0x42,0x08,0x04,0x40,0x24,0x42,0x40,0x24,0x00,0x00,
- 0x20,0x80,0x08,0x10,0x00,0x00,0x04,0x08,0x18,0x58,0x24,0x24,0x58,0x24,0x00,0x00,
- 0x21,0x08,0x0F,0xF0,0x00,0x00,0x04,0x10,0x04,0x64,0x44,0x18,0x64,0x44,0x00,0x00,
- 0x23,0xFC,0x08,0x10,0x30,0x00,0x08,0x10,0x02,0x42,0x44,0x24,0x42,0x44,0x00,0x00,
- 0x20,0x08,0x0F,0xF0,0x30,0x00,0x10,0x10,0x02,0x42,0x7E,0x42,0x42,0x7E,0x00,0x00,
- 0x21,0x10,0x08,0x10,0x00,0x00,0x20,0x10,0x42,0x42,0x04,0x42,0x42,0x04,0x00,0x00,
- 0x20,0xA0,0xFF,0xFE,0x30,0x00,0x42,0x10,0x44,0x24,0x04,0x42,0x24,0x04,0x00,0x00,
- 0x20,0x40,0x04,0x40,0x30,0x00,0x7E,0x10,0x38,0x18,0x1E,0x3C,0x18,0x1E,0x00,0x00,
- 0x20,0x20,0x18,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x60,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- };
- unsigned char code description4[]={
- /*-- 宽度x高度=128x64 --*/
- 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0F,0xFF,0x82,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x08,0x00,0x82,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x08,0x20,0x82,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0A,0x22,0x82,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x09,0x53,0x9F,0xA4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x08,0x8A,0x82,0x27,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x08,0x84,0x82,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x09,0x44,0x82,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x09,0x4A,0x82,0x24,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0A,0x32,0x82,0x24,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0C,0x20,0x83,0xA4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x08,0x00,0x9E,0x24,0x86,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x08,0x03,0x88,0xFF,0xC6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x08,0x01,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,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,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,0x01,0x98,0x00,0xCE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x01,0x88,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x1A,0xFA,0xFA,0xE0,0x03,0x8B,0x83,0xC2,0x03,0x9F,0xC0,0x03,0x87,0x9F,0xC0,
- 0x00,0x12,0x52,0x52,0x40,0x00,0x8C,0x44,0x42,0x04,0x49,0x20,0x04,0x48,0x49,0x20,
- 0x00,0x12,0x52,0x52,0x40,0x00,0x88,0x48,0x42,0x08,0x09,0x20,0x08,0x08,0x49,0x20,
- 0x00,0x15,0x55,0x55,0x40,0x00,0x88,0x48,0x42,0x08,0x09,0x20,0x08,0x08,0x49,0x20,
- 0x00,0x15,0x55,0x55,0x40,0x00,0x88,0x48,0x42,0x08,0x09,0x20,0x08,0x08,0x49,0x20,
- 0x00,0x08,0x88,0x88,0x8C,0x00,0x88,0x44,0xC2,0x04,0x49,0x2C,0x04,0x48,0x49,0x20,
- 0x00,0x08,0x88,0x88,0x8C,0x00,0x9C,0xE3,0x6F,0x83,0x9D,0xAC,0x03,0x87,0x9D,0xA0,
- 0x00,0x00,0x00,0x00,0x00,0x08,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x0F,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,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,0x00,0x00,
- 0x1D,0xC0,0x06,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0D,0x80,0x06,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0D,0x80,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0D,0x80,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0D,0x87,0x8E,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0A,0x88,0x42,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0A,0x83,0xC2,0x02,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0A,0x84,0x42,0x02,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0A,0x88,0x42,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x0A,0x88,0x42,0x02,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x1A,0xC7,0xEF,0x8F,0x86,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,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,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x01,0x98,0x00,0xCE,0x00,0x00,0x07,0x02,0x03,0x87,0x80,0x00,0x00,0x00,0x00,
- 0x00,0x01,0x88,0x00,0x42,0x00,0x00,0x08,0x8E,0x04,0x88,0x40,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x08,0x00,0x42,0x00,0x00,0x0B,0x42,0x08,0x08,0x40,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x08,0x00,0x42,0x00,0x00,0x15,0x42,0x08,0x00,0x80,0x00,0x00,0x00,0x00,
- 0x00,0x03,0x8B,0x83,0xC2,0x03,0x9F,0xD5,0x42,0x0B,0x03,0x00,0x03,0x87,0x9F,0xC0,
- 0x00,0x00,0x8C,0x44,0x42,0x04,0x49,0x35,0x42,0x0C,0x80,0x80,0x04,0x48,0x49,0x20,
- 0x00,0x00,0x88,0x48,0x42,0x08,0x09,0x35,0x42,0x08,0x40,0x40,0x08,0x08,0x49,0x20,
- 0x00,0x00,0x88,0x48,0x42,0x08,0x09,0x36,0x82,0x08,0x40,0x40,0x08,0x08,0x49,0x20,
- 0x00,0x00,0x88,0x48,0x42,0x08,0x09,0x28,0x42,0x08,0x48,0x40,0x08,0x08,0x49,0x20,
- 0x00,0x00,0x88,0x44,0xC2,0x04,0x49,0x28,0x82,0x04,0x88,0x8C,0x04,0x48,0x49,0x20,
- 0x00,0x00,0x9C,0xE3,0x6F,0x83,0x9D,0xA7,0x0F,0x83,0x07,0x0C,0x03,0x87,0x9D,0xA0,
- 0x00,0x08,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- };
- unsigned char code description5[]={
- /*-- 宽度x高度=128x64 --*/
- 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,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,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,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,
- 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,0x00,0x00,0x00,0x00,
- 0x00,0x20,0x00,0x20,0x00,0x00,0x40,0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x02,0x00,
- 0x11,0x20,0x10,0x20,0x00,0x00,0x27,0xFE,0x12,0x04,0x01,0x00,0x01,0x00,0x01,0x00,
- 0x11,0x20,0x10,0x20,0x00,0x00,0x24,0x04,0x12,0x44,0xFF,0xFE,0x7F,0xFE,0x3F,0xFE,
- 0x11,0x24,0x10,0x20,0x00,0x00,0x01,0x20,0x12,0x44,0x01,0x00,0x40,0x04,0x20,0x04,
- 0xFD,0x3E,0x10,0x20,0x00,0x00,0x81,0x18,0xFE,0x44,0x01,0x00,0x80,0x08,0x44,0x08,
- 0x11,0xE4,0xFD,0x20,0x00,0x00,0x56,0x08,0x12,0x44,0x1F,0xF8,0x3F,0xF8,0x06,0x00,
- 0x17,0x24,0x11,0x3C,0x00,0x00,0x50,0x40,0x12,0x44,0x11,0x08,0x01,0x00,0x04,0x00,
- 0x11,0x24,0x11,0x20,0x00,0x00,0x10,0x40,0x12,0x44,0x11,0x08,0x01,0x00,0xFF,0xFE,
- 0x11,0x24,0x11,0x20,0x00,0x00,0x27,0xFC,0x12,0x44,0x11,0x08,0x01,0x00,0x08,0x20,
- 0x11,0x34,0x11,0x20,0x30,0x00,0x20,0x40,0x12,0x44,0x11,0x08,0x1F,0xF8,0x08,0x20,
- 0x11,0x28,0x11,0x20,0x30,0x00,0xC0,0xE0,0x3A,0x44,0x11,0x08,0x01,0x40,0x08,0x40,
- 0x1D,0x20,0x1D,0x20,0x00,0x00,0x41,0x58,0xC4,0x44,0x11,0x08,0x01,0x20,0x06,0x80,
- 0x31,0x02,0xF1,0x24,0x30,0x00,0x46,0x4E,0x04,0x44,0x11,0x28,0x01,0x30,0x01,0x00,
- 0xC1,0x02,0x47,0xFE,0x30,0x00,0x58,0x44,0x08,0x04,0x11,0x10,0x01,0x20,0x06,0xC0,
- 0x00,0xFE,0x00,0x00,0x00,0x00,0x40,0x40,0x10,0x04,0x01,0x00,0x7F,0xFE,0x18,0x38,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x40,0x00,0x00,0x01,0x00,0x00,0x00,0xE0,0x10,
- 0x00,0x00,0x00,0x00,0x01,0x00,0x10,0x20,0x42,0x04,0x20,0x00,0x01,0x00,0x00,0x00,
- 0x7F,0xFC,0xFF,0xFE,0x01,0x80,0x10,0x40,0x22,0x24,0x27,0xFC,0x01,0x00,0x3F,0xFC,
- 0x40,0x20,0x04,0x40,0x03,0x10,0x7F,0xFC,0x22,0x24,0x20,0x00,0x01,0x08,0x01,0x00,
- 0x40,0x30,0x04,0x40,0x06,0x18,0x52,0xC4,0x02,0x24,0x30,0x00,0x3F,0xFC,0x01,0x00,
- 0x48,0x20,0x7F,0xFC,0x08,0x30,0x18,0xA4,0x92,0x24,0xAB,0xF8,0x01,0x00,0x01,0x00,
- 0x46,0x40,0x44,0x44,0x1F,0xE0,0x24,0xA4,0x5B,0x34,0xAA,0x08,0x01,0x10,0x01,0x00,
- 0x41,0x40,0x44,0x44,0x00,0x88,0x3E,0x8C,0x56,0xAC,0xA2,0x08,0x3F,0xF8,0x01,0x00,
- 0x40,0x80,0x44,0x44,0x03,0x0C,0x68,0x80,0x22,0x24,0x23,0xF8,0x01,0x00,0x01,0x00,
- 0x41,0x40,0x44,0x44,0x0C,0x78,0xA8,0xFE,0x22,0x24,0x22,0x08,0x01,0x00,0x01,0x00,
- 0x42,0x20,0x48,0x3C,0x1F,0x90,0x3E,0x02,0x22,0x24,0x22,0x08,0x01,0x04,0x01,0x00,
- 0x44,0x30,0x50,0x04,0x08,0x10,0x28,0x02,0xC2,0x24,0x23,0xF8,0xFF,0xFE,0x01,0x00,
- 0x48,0x18,0x60,0x04,0x00,0x20,0x3E,0xFA,0x44,0x24,0x20,0x00,0x01,0x00,0x01,0x00,
- 0x50,0x10,0x40,0x04,0x00,0xC0,0x28,0x02,0x44,0x24,0x20,0x00,0x01,0x00,0x01,0x00,
- 0x7F,0xFC,0x7F,0xFC,0x07,0x00,0x28,0x02,0x48,0x24,0x2F,0xFE,0x01,0x00,0xFF,0xFE,
- 0x00,0x00,0x40,0x04,0x78,0x00,0x3F,0x0A,0x50,0x24,0x20,0x00,0x01,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x04,0x40,0x04,0x00,0x00,0x01,0x00,0x00,0x00,
- 0x04,0x40,0x20,0x20,0x00,0x00,0x10,0x40,0x00,0x10,0x20,0x00,0x00,0x00,0x00,0x00,
- 0x04,0x40,0x20,0x28,0x00,0x00,0x10,0x40,0x00,0x10,0xA4,0x00,0x7F,0xFC,0x00,0x00,
- 0x04,0x40,0x20,0x24,0x00,0x00,0x13,0xFE,0x00,0x10,0x68,0x00,0x40,0x20,0x00,0x00,
- 0x04,0x44,0x27,0xFE,0x3E,0x1C,0xFC,0x40,0x3C,0xFD,0xFE,0x3E,0x40,0x30,0x00,0x00,
- 0x44,0x46,0xFC,0x20,0x42,0x24,0x10,0x80,0x42,0x10,0x70,0x08,0x48,0x20,0x00,0x00,
- 0x24,0x4C,0x24,0x24,0x42,0x40,0x30,0xA0,0x42,0x38,0xA8,0x08,0x46,0x40,0x00,0x00,
- 0x24,0x48,0x27,0xA6,0x80,0x40,0x39,0x20,0x42,0x35,0x26,0x08,0x41,0x40,0x00,0x00,
- 0x14,0x50,0x24,0xA4,0x80,0x58,0x55,0xFC,0x04,0x50,0x40,0x08,0x40,0x80,0x00,0x00,
- 0x1C,0x50,0x24,0xA8,0x80,0x64,0x50,0x20,0x04,0x50,0x40,0x08,0x41,0x40,0x00,0x00,
- 0x14,0x60,0x3C,0xA8,0x80,0x42,0x91,0x20,0x08,0x97,0xFE,0x08,0x42,0x20,0x00,0x00,
- 0x04,0x40,0xE4,0x90,0x80,0x42,0x11,0x28,0x10,0x10,0x90,0x08,0x44,0x30,0x00,0x00,
- 0x04,0x40,0x47,0x92,0x42,0x42,0x12,0x24,0x20,0x11,0x90,0x08,0x48,0x18,0x00,0x00,
- 0x04,0x44,0x09,0x2A,0x44,0x24,0x14,0x26,0x42,0x10,0x60,0x08,0x50,0x10,0x00,0x00,
- 0xFF,0xFE,0x08,0x4A,0x38,0x18,0x10,0x22,0x7E,0x10,0xD8,0x08,0x7F,0xFC,0x00,0x00,
- 0x00,0x00,0x11,0x84,0x00,0x00,0x10,0xA0,0x00,0x17,0x06,0x88,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x40,0x00,0x10,0x02,0xF0,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,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,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,
- 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,0x00,0x00,0x00,0x00,
- };
- /**********************************/
- /* Time Delay */
- /**********************************/
- void Delay(long i)
- {
- while(i!=0)
- {
- i--;
- }
- }
- /**********************************/
- /* Transfer Commmand */
- /**********************************/
- void Write_Command(unsigned char command)
- {
- int i,j;
- j=0x80;
- CS=0;
- CD=0;
- for(i=0;i<8;i++)
- {
- SCL=0;
- if(command&j)SDA=1;
- else SDA=0;
- SCL=1;
- j=j>>1;
- }
- CS=1;
- }
- /**********************************/
- /* Transfer Data */
- /**********************************/
- void Write_Data(unsigned char data1)
- {
- int i,j;
- j=0x80;
- CS=0;
- CD=1;
- for(i=0;i<8;i++)
- {
- SCL=0;
- if(data1&j)SDA=1;
- else SDA=0;
- SCL=1;
- j=j>>1;
- }
- CS=1;
- }
- //-------------------------------------------------------------------
- void Set_column_addr(unsigned char add)
- {
- unsigned char temp;
- temp=add;
- add=add>>4;
- add=add&0x0f;
- add=add|0x10;
- Write_Command(add); //Set upper addr;
- add=temp;
- add=add&0x0F;
- Write_Command(add); //Set lower addr;
- }
- //-----------------------------------------------------------------
- void Set_row_addr(unsigned char row)
- {
- row=row&0x0F;
- row=row|0x0B0;
- Write_Command(row); //page addr set
- }
- /**********************************/
- /* LCD Initial Code */
- /**********************************/
- void Lcd_Set()
- {
- RESET=0;
- Delay(1000);
- RESET=1;
- Delay(1000);
-
- Write_Command(0xE2); //Software Reset
- Write_Command(0xA2); //Set Bias 0xA2
- Write_Command(0xA0); //Segment Direction Select ,bit0=1,reverse;=0,normal;
- Write_Command(0xC8); //Common Direction Select,bit3=1,reverse direction;=0,normal;
- Write_Command(0x2C); //Power Control Set
- Delay(10);
- Write_Command(0x2E); //Power Control Set
- Delay(10);
- Write_Command(0x2F); //Power Control Set
- Delay(10);
- Write_Command(0x24); //set ra/rb 0x25
- Write_Command(0x81); //Set Contrast
- Write_Command(0x2C); //29
- Write_Command(0xAF); //Display ON
- }
- /**********************************/
- /* Clear Display */
- /**********************************/
- void Display_Clear(data1,data2)
- {
- int i,j,m;
- m=0xb0;
- for(i=0;i<9;i++)
- {
- Write_Command(m);
- Write_Command(0x10);
- Write_Command(0x00);
- for(j=0;j<66;j++)
- {
- Write_Data(data1);
- Write_Data(data2);
- }
- m++;
- }
- }
- /**********************************/
- void show_three_h_bar(int row)
- {
- int i,page,row_data;
- page=row/8;
- i=row%8;
- row_data=row_table[i];
-
- Set_row_addr(page-1); //清除前一条横线
- Set_column_addr(00);
- for(i=0;i<132;i++)
- {
- Write_Data(0x00);
- }
- Set_row_addr(page); //清除前一条横线
- Set_column_addr(00);
- for(i=0;i<132;i++)
- {
- Write_Data(0x00);
- }
- Set_row_addr(page);
- Set_column_addr(00);
- for(i=0;i<132;i++)
- {
- Write_Data(row_data);
- }
- }
- /**********************************/
- /**********************************/
- /* three vertical bar */
- /**********************************/
- void show_three_v_bar(int bar)
- {
- int i;
- Set_column_addr(bar-1);
- for(i=0;i<9;i++)
- {
- Set_row_addr(i);
- Set_column_addr(bar-1);
- Write_Data(0x00);
- }
- Set_column_addr(bar);
- for(i=0;i<9;i++)
- {
- Set_row_addr(i);
- Set_column_addr(bar);
- Write_Data(0x0ff);
- }
- for(i=0;i<9;i++)
- {
- Set_row_addr(i);
- Set_column_addr(bar+1);
- Write_Data(0x0ff);
- }
- for(i=0;i<9;i++)
- {
- Set_row_addr(i);
- Set_column_addr(bar+2);
- Write_Data(0x0ff);
- }
- }
- /**********************************/
- /**********************************/
- /* one vertical bar */
- /**********************************/
- void show_one_v_bar(int bar)
- {
- int i;
- Set_column_addr(bar-1);
- for(i=0;i<9;i++)
- {
- Set_row_addr(i);
- Set_column_addr(bar-1);
- Write_Data(0x00);
- }
- Set_column_addr(bar);
- for(i=0;i<9;i++)
- {
- Set_row_addr(i);
- Set_column_addr(bar);
- Write_Data(0x0ff);
- }
- }
- /**********************************/
- /* one horizontal bar */
- /**********************************/
- void show_one_h_bar(int row)
- {
- int i,page,row_data;
- page=row/8;
- i=row%8;
- row_data=row_table[i];
-
- Set_row_addr(page-1); //清除前一条横线
- Set_column_addr(00);
- for(i=0;i<132;i++)
- {
- Write_Data(0x00);
- }
- Set_row_addr(page); //清除前一条横线
- Set_column_addr(00);
- for(i=0;i<132;i++)
- {
- Write_Data(0x00);
- }
- Set_row_addr(page);
- Set_column_addr(00);
- for(i=0;i<132;i++)
- {
- Write_Data(row_data);
- }
- }
- /**********************************/
- /* Display Font */
- /**********************************/
- void Display_Font(unsigned char page0,seg0,unsigned char *p)
- {
- int i,m,n;
- m=((seg0&0xf0)>>4)|0x10;
- n=seg0&0x0f;
- Write_Command(page0);
- Write_Command(m);
- Write_Command(n);
- for(i=0;i<5;i++)
- {
- Write_Data(*p++);
- }
- }
- /**********************************/
- /* Display Hanzi */
- /**********************************/
- void Display_Hanzi(unsigned char page0,seg0,unsigned char *p)
- {
- int i,m,n;
- m=((seg0&0xf0)>>4)|0x10;
- n=seg0&0x0f;
- Write_Command(page0);
- Write_Command(m);
- Write_Command(n);
- for(i=0;i<16;i++)
- {
- Write_Data(*p++);
- }
- m=((seg0&0xf0)>>4)|0x10;
- n=seg0&0x0f;
- Write_Command(page0+1);
- Write_Command(m);
- Write_Command(n);
- for(i=0;i<16;i++)
- {
- Write_Data(*p++);
- }
- }
- /**********************************/
- /* Display Character */
- /**********************************/
- void Display_Character(unsigned char page0,seg0,unsigned char *p0)
- {
- int step0=10;
- int step1=5;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- /*
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,p0);
-
- seg0=seg0+step0;
- p0=p0+step1;
- Display_Font(page0,seg0,_00);
- */
-
- }
- //-------------------------------------------------------------------
- void Show_one_char(unsigned char xs,unsigned char page,unsigned char *p)
- {
- int i;
- Set_column_addr(xs); //column addr set
- Set_row_addr(page);
- for(i=0;i<5;i++) //5X8 font
- {
- Write_Data(*(p++));
- //Write_Data(*(p++));
- }
- }
- //------------------------------------------------------------------
- //------------------------------------------------------------------
- void Conversion_T0_char(int number)
- {
- Buf_1=number/100;
- conversion=number%100;
- Buf_2=conversion/10;
- Buf_3=conversion%10;
- }
- //-------------------------------------------------------------------
- char *Get_addr(int num)
- {
- unsigned char *pt;
- switch(num)
- {
- case 0: pt=char_0;break;
- case 1: pt=char_1;break;
- case 2: pt=char_2;break;
- case 3: pt=char_3;break;
- case 4: pt=char_4;break;
- case 5: pt=char_5;break;
- case 6: pt=char_6;break;
- case 7: pt=char_7;break;
- case 8: pt=char_8;break;
- case 9: pt=char_9;break;
- }
- return pt;
- }
- //------------------------------------------------------------------
- void show_three_number(unsigned char x,y,int n)
- {
- Conversion_T0_char(n);
- char_point=Get_addr(Buf_1);
- Show_one_char(x,y,char_point);
- char_point=Get_addr(Buf_2);
- x=x+5;
- Show_one_char(x,y,char_point);
- char_point=Get_addr(Buf_3);
- x=x+5;
- Show_one_char(x,y,char_point);
- }
- //********************************
- /**********************************/
- void Wait_Press()
- {
- while(KEY_PRESS);
- Delay(0x5000);
- }
- /**********************************/
- /* Draw a image */
- /**********************************/
- void Display_Image(unsigned char page0,seg0,pagew,segw,unsigned char *p)
- {
- int i,j,m,n;
- m=((seg0&0xf0)>>4)|0x10;
- n=seg0&0x0f;
- for(i=0;i<pagew;i++)
- {
- Write_Command(page0);
- Write_Command(m);
- Write_Command(n);
- for(j=0;j<segw;j++)
- {
- Write_Data(*(p++));
- }
- page0++;
- }
- }
- /**********************************/
- //REGULATE CONTRAST
- void Regulate_contrast()
- {
-
- while(EXIT_KEY&&01)
- {
- if(KEY_PRESS==0)
- {
- contrast=contrast+1;
- Write_Command(0x81); //Set Contrast
- Write_Command(contrast);
- Delay(0x5000);
- }
- if(DEC_KEY==0)
- {
- contrast=contrast-1;
- Write_Command(0x81); //Set Contrast
- Write_Command(contrast);
- Delay(0x5000);
- }
- }
- }
- /**********************************/
- /* Main */
- /**********************************/
- void main()
- {
- int i;
- int j=0x40;
- contrast=0x0C;
- Lcd_Set();
- while(1)
- {
-
- Display_Image(0xb0,0x01,8,128,description1);
- Wait_Press(); //Delay(0x5000);
- Display_Image(0xb0,0x01,8,128,description2);
- Wait_Press(); //Delay(0x5000);
- Display_Image(0xb0,0x01,8,128,description3);
- Wait_Press(); //Delay(0x5000);
- Display_Image(0xb0,0x01,8,128,description4);
- Wait_Press(); //Delay(0x5000);
- Display_Image(0xb0,0x01,8,128,description5);
- Wait_Press(); //Delay(0x5000);
- // Regulate_contrast();
- // Display_Image(0xb0,0x01,8,128,orise_tech);
- // Wait_Press(); //Delay(0x5000);
- Display_Clear(0x00,0x00);
- Display_Clear(0x55,0xaa); //SNOW
- Wait_Press();
- Display_Clear(0x00,0x00);
- Display_Clear(0xFF,0xFF); //BLACK
- Wait_Press();
-
- Display_Clear(0x00,0x00);
- Display_Clear(0xff,0x00); //V_BAR
- Wait_Press();
-
- Display_Clear(0x00,0x00);
- Display_Clear(0x55,0x55); //H_BAR
- Wait_Press();
-
- Display_Clear(0x00,0x00);
- //Display_Clear(0xFF,0xFF); //BLACK
- for(i=0;i<65;i++)
- {
- show_one_h_bar(i);
- show_three_number(4,3,i);
- Wait_Press();
- }
- /*
- Display_Clear(0x00,0x00);
- for(i=0;i<132;i++)
- {
- show_one_v_bar(i);
- // show_three_v_bar(i);
- show_three_number(4,0,i);
- Wait_Press();
- }
- Display_Clear(0x00,0x00);
-
- …………限于本文篇幅 余下代码请从51黑下载附件…………
复制代码
完整资料下载:
使用st7565R芯片的12864液晶驱动和资料-_单色COG液晶的规格书和源代码例程等.zip
(970.39 KB, 下载次数: 95)
|