//------------------------------------------------- // Shenzhen TOPWAY Technology Co.,Ltd. // LCD Module: LM160160 // Display Size: 160x160 // Driver/Controller: UC1698U // Interface: 80 mode // by: guoQ // Date: 2009-3-30 //---------------------------------------------------- #include #include #include #define uchar unsigned char // 8bit, 0 ~ 255 #define uint unsigned int // 16bit, 0 ~ 65,535 #define ulong unsigned long // 32bit, 0 ~ 4,294,967,295 //---???н?????----- #define LCDBUS P1 sbit _CS = P3^4; sbit _RES = P3^5; sbit RS = P3^6; sbit _WR = P3^7; sbit _RD = P3^1; uchar ContrastLevel; // for contrast setting level // ???--???--LOGO-- uchar code DISPLOGO[]={ /*-- ????????????D:\guoq files\technic support\pic\160x160 logo.bmp --*/ /*-- ????x???=160x160 --*/ 0xFF,0xFF,0xFF,0xFF,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,0x00,0x00,0x2A,0xA0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x55,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x0A,0xAA,0x83,0xF0,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x01,0x55,0x54,0x3F, 0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x2A,0xAA,0xA0,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x05,0x55,0x55,0x47,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x0A,0xAA,0xAA,0xAA,0x1F,0xFF,0xF0,0x20,0x00,0x90, 0x44,0x00,0x10,0x81,0x22,0x00,0x00,0x01,0x80,0x05,0x55,0x55,0x55,0x54,0x7F,0xFF, 0xF0,0x17,0xF8,0x92,0x44,0xFE,0x09,0x02,0xAA,0x00,0x00,0x01,0x80,0x00,0x00,0x02, 0xAA,0xA9,0xFF,0xFF,0xF0,0x04,0x08,0x92,0x44,0x20,0x7F,0xF4,0xAA,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x55,0x43,0xFF,0xFF,0xF0,0x41,0x20,0x92,0x5F,0x20,0x49,0x20, 0xFB,0x80,0x00,0x01,0x80,0x00,0x00,0x00,0xAA,0x8F,0xFF,0xFF,0xF0,0x22,0x93,0xF2, 0x44,0x40,0x29,0x41,0x05,0x00,0x00,0x01,0x80,0x00,0x00,0x01,0x55,0x3F,0xFF,0xFF, 0xF0,0x00,0x80,0x92,0x45,0x40,0xFF,0xF2,0xFD,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0xAA,0x7F,0xFF,0xFF,0xF0,0x17,0xF8,0x92,0x46,0xFC,0x00,0x06,0x05,0x00,0x00,0x01, 0x80,0x00,0x00,0x01,0x54,0xFF,0xFF,0xFF,0xF0,0x20,0x80,0x92,0x5D,0x44,0x1F,0xC2, 0x75,0x00,0x00,0x01,0x80,0x00,0x00,0x02,0xA9,0xFF,0xFF,0xFF,0xF0,0x61,0xC0,0xF2, 0x44,0x44,0x10,0x42,0x52,0x00,0x00,0x01,0x80,0x00,0x00,0x05,0x53,0xFF,0xFF,0xFF, 0xF0,0x22,0xA3,0x92,0x44,0x44,0x1F,0xC2,0x5A,0x00,0x00,0x01,0x80,0x00,0x00,0x02, 0xA7,0xFF,0xFF,0xFF,0xF0,0x2C,0x99,0x20,0x44,0x7C,0x10,0x42,0x95,0x00,0x00,0x01, 0x80,0x00,0x00,0x05,0x4F,0xFF,0xFF,0xFF,0xF0,0x20,0x80,0x40,0x4C,0x44,0x1F,0xC3, 0x08,0x80,0x00,0x01,0x80,0x00,0x00,0x0A,0x9F,0xFF,0xFF,0xFF,0xF0,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x15,0x3F,0xFF,0xFF,0xFF, 0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x0A, 0x7F,0xFF,0xFF,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x14,0xFF,0xFF,0xFF,0xFF,0xF0,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFC,0x00,0x01,0x80,0x00,0x00,0x29,0xFF,0xFF,0xFF,0xFF,0xF0,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x53,0xFF,0xFF,0xFF,0xFF, 0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x27, 0xFF,0xFF,0xFF,0xFF,0xF0,0x7C,0x71,0xE8,0x42,0x21,0x04,0x20,0x81,0x00,0x00,0x01, 0x80,0x00,0x00,0x47,0xFF,0xFF,0xFF,0xFF,0xF0,0x10,0x89,0x18,0xA2,0x50,0x88,0x20, 0x81,0x00,0x00,0x01,0x80,0x00,0x00,0x8E,0x0C,0x61,0xBB,0xBB,0xB0,0x11,0x05,0x14, 0xA4,0x50,0x88,0x21,0xCD,0x00,0x00,0x01,0x80,0x00,0x00,0x5F,0xBB,0xAE,0xBB,0x5D, 0x70,0x11,0x05,0x14,0xA4,0x50,0x50,0x20,0x93,0x00,0x00,0x01,0x80,0x00,0x00,0x9F, 0xBB,0xA1,0xAA,0x0E,0xF0,0x11,0x05,0xE5,0x14,0x88,0x20,0x20,0x91,0x00,0x00,0x01, 0x80,0x00,0x01,0x3F,0xBC,0x6F,0xD6,0xEE,0xF0,0x11,0x05,0x05,0x14,0xF8,0x20,0x20, 0x91,0x00,0x00,0x01,0x80,0x00,0x02,0x7F,0xFF,0xFF,0xFF,0xFF,0xF0,0x10,0x89,0x02, 0x09,0x04,0x20,0x20,0x93,0x00,0x00,0x01,0x80,0x00,0x00,0x7F,0xFF,0xFF,0xFF,0xFF, 0xF0,0x10,0x71,0x02,0x09,0x04,0x20,0x3E,0xCD,0x20,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x3C,0x00,0x0F, 0xE0,0x3F,0x80,0x1C,0x00,0x7C,0x00,0xFC,0x00,0x1C,0x00,0x7C,0x00,0xFC,0x00,0x01, 0x80,0x3C,0x00,0x0F,0xE0,0x3F,0x80,0x3C,0x01,0xFF,0x01,0xFE,0x00,0x3C,0x01,0xFF, 0x01,0xFE,0x00,0x01,0x80,0x3C,0x00,0x0F,0xE0,0x3F,0x80,0x7C,0x03,0xFF,0x83,0xFF, 0x00,0x7C,0x03,0xFF,0x83,0xFF,0x00,0x01,0x80,0x3C,0x00,0x0F,0xE0,0x3F,0x80,0xFC, 0x07,0xFF,0x87,0xFF,0x80,0xFC,0x07,0xFF,0x87,0xFF,0x80,0x01,0x80,0x3C,0x00,0x0F, 0x70,0x77,0x83,0xFC,0x07,0xC7,0xC7,0x87,0x83,0xFC,0x07,0xC7,0xC7,0x87,0x80,0x01, 0x80,0x3C,0x00,0x0F,0x70,0x77,0x87,0xFC,0x07,0x83,0xC7,0x87,0x87,0xFC,0x07,0x83, 0xC7,0x87,0x80,0x01,0x80,0x3C,0x00,0x0F,0x70,0x77,0x87,0xBC,0x0F,0x00,0x0F,0x03, 0xC7,0xBC,0x0F,0x00,0x0F,0x03,0xC0,0x01,0x80,0x3C,0x00,0x0F,0x70,0x77,0x87,0x3C, 0x0F,0x00,0x0F,0x03,0xC7,0x3C,0x0F,0x00,0x0F,0x03,0xC0,0x01,0x80,0x3C,0x00,0x0F, 0x38,0xE7,0x84,0x3C,0x0F,0x7C,0x0F,0x03,0xC4,0x3C,0x0F,0x7C,0x0F,0x03,0xC0,0x01, 0x80,0x3C,0x00,0x0F,0x38,0xE7,0x80,0x3C,0x0F,0xFF,0x0F,0x03,0xC0,0x3C,0x0F,0xFF, 0x0F,0x03,0xC0,0x01,0x80,0x3C,0x00,0x0F,0x38,0xE7,0x80,0x3C,0x0F,0xFF,0x8F,0x03, 0xC0,0x3C,0x0F,0xFF,0x8F,0x03,0xC0,0x01,0x80,0x3C,0x00,0x0F,0x38,0xE7,0x80,0x3C, 0x0F,0xFF,0x8F,0x03,0xC0,0x3C,0x0F,0xFF,0x8F,0x03,0xC0,0x01,0x80,0x3C,0x00,0x0F, 0x1D,0xC7,0x80,0x3C,0x0F,0x87,0xCF,0x03,0xC0,0x3C,0x0F,0x87,0xCF,0x03,0xC0,0x01, 0x80,0x3C,0x00,0x0F,0x1D,0xC7,0x80,0x3C,0x0F,0x03,0xCF,0x03,0xC0,0x3C,0x0F,0x03, 0xCF,0x03,0xC0,0x01,0x80,0x3C,0x00,0x0F,0x1D,0xC7,0x80,0x3C,0x0F,0x03,0xCF,0x03, 0xC0,0x3C,0x0F,0x03,0xCF,0x03,0xC0,0x01,0x80,0x3C,0x00,0x0F,0x1D,0xC7,0x80,0x3C, 0x07,0x03,0xCF,0x87,0x80,0x3C,0x07,0x03,0xCF,0x87,0x80,0x01,0x80,0x3C,0x00,0x0F, 0x0F,0x87,0x80,0x3C,0x07,0x87,0xC7,0x87,0x80,0x3C,0x07,0x87,0xC7,0x87,0x80,0x01, 0x80,0x3F,0xFF,0x8F,0x0F,0x87,0x80,0x3C,0x07,0xFF,0x87,0xFF,0x80,0x3C,0x07,0xFF, 0x87,0xFF,0x80,0x01,0x80,0x3F,0xFF,0x8F,0x0F,0x87,0x80,0x3C,0x03,0xFF,0x83,0xFF, 0x00,0x3C,0x03,0xFF,0x83,0xFF,0x00,0x01,0x80,0x3F,0xFF,0x8F,0x07,0x07,0x80,0x3C, 0x01,0xFF,0x01,0xFE,0x00,0x3C,0x01,0xFF,0x01,0xFE,0x00,0x01,0x80,0x3F,0xFF,0x8F, 0x07,0x07,0x80,0x3C,0x00,0x7C,0x00,0xFC,0x00,0x3C,0x00,0x7C,0x00,0xFC,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x1F,0x8F,0x9F,0xD0,0x40,0x21,0xE3,0xC0,0x00,0x02,0x1E, 0x3C,0x07,0xE2,0x00,0x01,0x00,0x00,0x01,0x80,0x10,0x10,0x42,0x18,0x40,0x62,0x14, 0x20,0x00,0x06,0x21,0x42,0x04,0x10,0x00,0x01,0x00,0x00,0x01,0x80,0x10,0x10,0x42, 0x14,0x40,0xA2,0x04,0x20,0x00,0x0A,0x20,0x42,0x04,0x10,0x00,0x01,0x00,0x00,0x01, 0x80,0x10,0x10,0x02,0x14,0x40,0x22,0x04,0x20,0x44,0x02,0x20,0x42,0x04,0x12,0x44, 0x71,0x1C,0x00,0x01,0x80,0x1F,0x0E,0x02,0x12,0x40,0x22,0xE4,0x20,0x28,0x02,0x2E, 0x42,0x04,0x12,0x28,0x89,0x22,0x00,0x01,0x80,0x10,0x01,0x82,0x12,0x40,0x23,0x14, 0x20,0x28,0x02,0x31,0x42,0x07,0xE2,0x28,0x89,0x20,0x00,0x01,0x80,0x10,0x00,0x42, 0x11,0x40,0x22,0x14,0x20,0x10,0x02,0x21,0x42,0x04,0x02,0x10,0xF9,0x1C,0x00,0x01, 0x80,0x10,0x10,0x42,0x11,0x40,0x22,0x14,0x20,0x28,0x02,0x21,0x42,0x04,0x02,0x28, 0x81,0x02,0x00,0x01,0x80,0x10,0x10,0x42,0x10,0xC0,0x22,0x14,0x20,0x28,0x02,0x21, 0x42,0x04,0x02,0x28,0x89,0x22,0x00,0x01,0x80,0x10,0x0F,0x82,0x10,0x40,0x21,0xE3, 0xC0,0x44,0x02,0x1E,0x3C,0x04,0x02,0x44,0x71,0x1C,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 0x00,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,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, }; //----------------------------------- // delayms routine //----------------------------------- void delayms(uint m) // 12MHz Xtal, close to ms value { uint j; uint i; for(i=0; i0x00) { ContrastLevel--; } SdCmd(0x81); // E-Vol setting SdCmd(ContrastLevel); // (2byte command) } //--???д????------------------ // ??θ?????????????????3??8????????? // 8??????????????????????? // 3??????????DDRAM?е?????п????????????3???????????????п? void ShowBMP(uchar x,y,width,high,uchar bmp[]) { uint p; uchar i,j,k,m,Ddata; SdCmd(0xf4); SdCmd(0x25+x); // ???ò??????????? SdCmd(0xf5); SdCmd(y); // ???ò??????????? SdCmd(0xf6); SdCmd(0x25+width/3); // ???ò??????????? SdCmd(0xf7); SdCmd(high-1); // ???ò????????±?? SdCmd(0xf8); // ????????????? x=x+0x25; SdCmd(x&0x0f);SdCmd(0x10|(x>>4)); // ????????е?? SdCmd(0x60+(y&0x0f)); SdCmd(0x70+(y>>4)); // ????????е?? p=0; // ??????????? for(i=0;i