//---------------------------------------------------- // Shenzhen TOPWAY Technology Co.,Ltd. // LCD Module: LM240128R // Display Size: 240x128 dots // Controller: RA8806 (6MHz) // by: GuoQ // Date: 2009-10-27 //---------------------------------------------------- #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 //-------------------------------------------------------------------- uchar code logo[]={ /*-- ????????????D:\guoq files\technic support\pic\LM240128D-logo.bmp --*/ /*-- ????x???=240x128 --*/ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,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,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,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,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,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,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,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,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,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,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,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,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,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,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x01,0x55,0x40,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0xAA,0xA0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 0x00,0x00,0x15,0x55,0x07,0xE1,0x80,0x00,0x00,0x00,0x03,0x00,0x0C,0x00,0x03,0x0C, 0x06,0x63,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x02, 0xAA,0xA8,0x7F,0xE0,0xDF,0xFC,0x36,0x0C,0x01,0x80,0x0D,0xFF,0x81,0x98,0x07,0x63, 0x80,0x18,0x07,0xFF,0xE0,0x19,0x80,0x7F,0xFC,0x01,0x80,0x00,0x00,0x55,0x55,0x41, 0xFF,0xE0,0xD8,0x18,0x36,0xCC,0xFF,0xFF,0x0C,0x30,0x1F,0xFF,0x87,0xFB,0x07,0xFF, 0xF6,0xD8,0x60,0x1D,0x80,0x00,0x0C,0x01,0x80,0x00,0x0A,0xAA,0xAA,0x8F,0xFF,0xE0, 0x06,0xC0,0x36,0xCC,0x01,0x80,0x7F,0xB0,0x01,0x98,0x0D,0xFE,0x00,0x30,0x06,0xDF, 0xE0,0x19,0x80,0x00,0x0C,0x01,0x80,0x15,0x55,0x55,0x54,0x3F,0xFF,0xE3,0x06,0x71, 0xFE,0xCC,0x01,0x80,0x0C,0x30,0x0D,0x9B,0x1F,0xFF,0xE0,0x60,0x07,0x98,0x60,0x30, 0xC0,0xFF,0xEC,0x01,0x8A,0xAA,0xAA,0xAA,0x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06,0x06,0x06,0xDF,0xC0,0xC1,0x86,0x18,0xC0,0x67, 0xF0,0x60,0x0C,0x01,0x80,0x00,0x0A,0xA7,0xFF,0xFF,0xFF,0xE1,0xF1,0x98,0x18,0x0C, 0x19,0x98,0x0C,0x7F,0x06,0x06,0x07,0x9E,0xC0,0xCD,0x86,0x1E,0x78,0xFE,0x70,0x00, 0x3C,0x01,0x80,0x00,0x05,0x4F,0xFF,0xFF,0xFF,0xE1,0x81,0x80,0x30,0x0C,0x01,0x80, 0x3C,0x63,0x07,0xFE,0x07,0x0C,0xE0,0xC7,0x86,0x1C,0x30,0x60,0x60,0x00,0x18,0x01, 0x80,0x00,0x0A,0x9F,0xFF,0xFF,0xFF,0xE1,0x81,0x80,0x00,0x00,0x01,0x80,0x18,0x00, 0x06,0x06,0x06,0x18,0xC0,0xC3,0x06,0x18,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 0x15,0x3F,0xFF,0xFF,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x2A,0x7F, 0xFF,0xFF,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x14,0xFF,0xFF,0xFF, 0xFF,0xE1,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF1,0x80,0x00,0x29,0xFF,0xFF,0xFF,0xFF,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x53,0xFF,0xFF,0xFF,0xFF,0xE0,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x00,0xA7,0xFF,0xFF,0xFF,0xFF,0xE0,0xF9,0x80,0x00,0x00, 0x30,0x00,0x00,0x07,0xE3,0xC7,0xEC,0x71,0x9C,0xC3,0x00,0xF0,0x00,0x01,0x81,0x03, 0x00,0x01,0x80,0x00,0x4F,0xFF,0xFF,0xFF,0xFF,0xE1,0x8D,0x80,0x00,0x00,0x30,0x00, 0x00,0x01,0x86,0x66,0x3C,0x71,0x9C,0x66,0x01,0x98,0x00,0x01,0x83,0x03,0x00,0x01, 0x80,0x00,0x8F,0xFF,0xFF,0xFF,0xFF,0xE1,0x81,0xB1,0xE6,0xCF,0xB6,0x3C,0xD8,0x01, 0x8C,0x36,0x36,0xFB,0x36,0x66,0x03,0x01,0xE0,0x01,0x87,0x9B,0x00,0x01,0x80,0x01, 0x1C,0x18,0xC3,0x77,0x77,0x61,0xE1,0xDB,0x37,0x61,0xBB,0x66,0xEC,0x01,0x8C,0x36, 0x36,0xDB,0x36,0x3C,0x03,0x03,0x30,0x01,0x83,0x37,0x00,0x01,0x80,0x00,0xBF,0x77, 0x5D,0x76,0xBA,0xE0,0xF9,0x9B,0x36,0x63,0x33,0x66,0xCC,0x01,0x8C,0x36,0x36,0xDB, 0x36,0x18,0x03,0x03,0x30,0x01,0x83,0x33,0x00,0x01,0x80,0x01,0x3F,0x77,0x43,0x54, 0x1D,0xE0,0x3D,0x9B,0xF6,0x66,0x33,0x7E,0xCC,0x01,0x8C,0x37,0xE6,0xDB,0x36,0x18, 0x03,0x03,0x30,0x01,0x83,0x33,0x00,0x01,0x80,0x02,0x7F,0x78,0xDF,0xAD,0xDD,0xE0, 0x0D,0x9B,0x06,0x66,0x33,0x60,0xCC,0x01,0x8C,0x36,0x03,0x8E,0x7F,0x18,0x03,0x03, 0x30,0x01,0x83,0x33,0x00,0x01,0x80,0x04,0xFF,0xFF,0xFF,0xFF,0xFF,0xE1,0x8D,0x9B, 0x36,0x6C,0x33,0x66,0xCC,0x01,0x86,0x66,0x03,0x8E,0x63,0x18,0x01,0x9B,0x36,0xC1, 0x83,0x37,0x60,0x01,0x80,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xE0,0xF9,0x99,0xE6,0x6F, 0xB3,0x3C,0xCC,0x01,0x83,0xC6,0x03,0x8E,0x63,0x18,0x00,0xF1,0xE6,0xC1,0xF9,0x9B, 0x60,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x01,0x80,0x00, 0x00,0x00,0x00,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,0x80,0x00,0x00,0x00, 0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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, 0x80,0x00,0x00,0x00,0x00,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,0x80,0x00, 0x00,0x00,0x00,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,0x80,0x00,0x00,0x00, 0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x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,0x00,0x01,0x80,0x00,0x1F,0x00,0x00,0x3D,0xE0,0x3D,0xE0,0xF8, 0x0F,0x80,0x1F,0xF0,0x3C,0x03,0xC0,0xFF,0xF0,0x0F,0x80,0xF8,0x7C,0x0F,0x80,0xF8, 0x00,0x7C,0x00,0x01,0x80,0x00,0x1F,0x00,0x00,0x3D,0xE0,0x3D,0xE0,0x00,0x0F,0x80, 0x3F,0xF0,0x7C,0x03,0xE0,0xFD,0xF0,0x00,0x00,0xF8,0x7C,0x0F,0x80,0xF8,0x00,0x7C, 0x00,0x01,0x80,0x00,0x1F,0x00,0x00,0x3C,0xE0,0x39,0xE0,0x00,0x0F,0x80,0x3D,0xF0, 0x7C,0x03,0xE0,0xF1,0xF0,0x00,0x00,0xF8,0x3E,0x1F,0x00,0xF8,0x00,0x7C,0x00,0x01, 0x80,0x00,0x1F,0x00,0x00,0x3C,0xF0,0x79,0xE0,0x00,0x1F,0x00,0x79,0xF0,0x7C,0x03, 0xE0,0xC1,0xF0,0x00,0x01,0xF0,0x3F,0xFE,0x00,0xF8,0x00,0xFC,0x00,0x01,0x80,0x00, 0x1F,0x00,0x00,0x3C,0xF0,0x79,0xE0,0x00,0x3F,0x00,0xF9,0xF0,0x7C,0x03,0xE0,0x01, 0xF0,0x00,0x03,0xF0,0x0F,0xFC,0x00,0xF8,0x01,0xF8,0x00,0x01,0x80,0x00,0x1F,0x00, 0x00,0x3C,0x70,0x71,0xE0,0x00,0x7E,0x00,0xF1,0xF0,0x7C,0x03,0xE0,0x01,0xF0,0x00, 0x07,0xE0,0x1F,0xFE,0x00,0xFF,0xFF,0xF8,0x00,0x01,0x80,0x00,0x1F,0x00,0x00,0x3C, 0x78,0xF1,0xE0,0x00,0xFE,0x01,0xF1,0xF0,0x7C,0x03,0xE0,0x01,0xF0,0x00,0x0F,0xE0, 0x3F,0xFF,0x00,0xFF,0xFF,0xF0,0x00,0x01,0x80,0x00,0x1F,0x00,0x00,0x3C,0x78,0xF1, 0xE0,0x01,0xF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, 0xFC,0x0F,0xC0,0xF8,0x01,0xF0,0x00,0x01,0x80,0x00,0x1F,0x00,0x00,0x3C,0x0F,0x81, 0xE0,0xFF,0xFF,0x80,0x01,0xF0,0x1F,0x0F,0x80,0x01,0xF0,0x0F,0xFF,0xF8,0x7E,0x1F, 0x80,0xF8,0x01,0xF8,0x00,0x01,0x80,0x00,0x1F,0xFF,0xFC,0x3C,0x0F,0x81,0xE0,0xFF, 0xFF,0x80,0x01,0xF0,0x1F,0xFF,0x80,0x01,0xF0,0x0F,0xFF,0xF8,0x7F,0xFF,0x80,0xF8, 0x00,0xFC,0x00,0x01,0x80,0x00,0x1F,0xFF,0xFC,0x3C,0x0F,0x81,0xE0,0xFF,0xFF,0x80, 0x01,0xF0,0x0F,0xFF,0x00,0x01,0xF0,0x0F,0xFF,0xF8,0x3F,0xFF,0x00,0xF8,0x00,0x7C, 0x00,0x01,0x80,0x00,0x1F,0xFF,0xFC,0x3C,0x07,0x01,0xE1,0xFF,0xFF,0x80,0x01,0xF0, 0x07,0xFE,0x00,0x01,0xF0,0x1F,0xFF,0xF8,0x0F,0xFE,0x00,0xF8,0x00,0x7E,0x00,0x01, 0x80,0x00,0x1F,0xFF,0xFC,0x3C,0x07,0x01,0xE1,0xFF,0xFF,0x80,0x01,0xF0,0x01,0xF8, 0x00,0x01,0xF0,0x1F,0xFF,0xF8,0x03,0xF8,0x00,0xF8,0x00,0x3F,0x00,0x01,0x80,0x00, 0x00,0x00,0x00,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,0x80,0x00,0x00,0x00, 0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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, 0x80,0x00,0x00,0x00,0x00,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,0x80,0x00, 0x00,0x00,0x00,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,0x80,0x00,0x00,0x00, 0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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, 0x80,0x00,0x00,0x00,0x00,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,0x80,0x00, 0x00,0x00,0x00,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,0x80,0x00,0x00,0x00, 0x00,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,0x80,0x00,0x0F,0x00,0x83,0x80, 0x00,0x00,0x81,0xE0,0xE1,0xFC,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x00,0xFE,0x01, 0x00,0xE0,0x70,0x38,0x1C,0x00,0x00,0x01,0x80,0x00,0x11,0x01,0x84,0x40,0x00,0x01, 0x82,0x21,0x11,0x02,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x81,0x02,0x81,0x10, 0x88,0x44,0x22,0x00,0x00,0x01,0x80,0x00,0x20,0x82,0x88,0x20,0x00,0x02,0x84,0x12, 0x09,0x01,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x80,0x82,0x82,0x09,0x04,0x82, 0x41,0x00,0x00,0x01,0x80,0x00,0x00,0x84,0x88,0x20,0x82,0x04,0x80,0x12,0x09,0x01, 0x0E,0x20,0xA2,0x3C,0x00,0x00,0x00,0x00,0x80,0x82,0x82,0x09,0x04,0x82,0x40,0x00, 0x00,0x01,0x80,0x00,0x00,0x84,0x88,0x20,0x44,0x00,0x80,0x11,0x11,0x01,0x11,0x11, 0x22,0x42,0x00,0x00,0x00,0x00,0x80,0x84,0x41,0x10,0x88,0x82,0x5C,0x00,0x00,0x01, 0x80,0x00,0x01,0x08,0x88,0x20,0x28,0x00,0x80,0x20,0xE1,0x02,0x20,0x8A,0x22,0x40, 0x00,0x00,0x00,0x00,0x81,0x04,0x40,0xE0,0x70,0x82,0x62,0x00,0x00,0x01,0x80,0x00, 0x01,0x10,0x88,0x20,0x28,0x00,0x80,0x21,0x11,0xFC,0x20,0x8A,0x22,0x40,0x00,0x00, 0x00,0x00,0xFE,0x04,0x41,0x10,0x88,0x82,0x41,0x00,0x00,0x01,0x80,0x00,0x02,0x20, 0x88,0x20,0x10,0x00,0x80,0x42,0x09,0x00,0x3F,0x84,0x22,0x3C,0x00,0x00,0x00,0x00, 0x84,0x0F,0xE2,0x09,0x04,0x82,0x41,0x00,0x00,0x01,0x80,0x00,0x04,0x3F,0xC8,0x20, 0x28,0x00,0x80,0x82,0x09,0x00,0x20,0x0A,0x22,0x02,0x00,0x00,0x00,0x00,0x82,0x08, 0x22,0x09,0x04,0x82,0x41,0x00,0x00,0x01,0x80,0x00,0x08,0x00,0x88,0x20,0x28,0x00, 0x81,0x02,0x09,0x00,0x20,0x8A,0x22,0x02,0x00,0x00,0x00,0x00,0x82,0x08,0x22,0x09, 0x04,0x82,0x41,0x00,0x00,0x01,0x80,0x00,0x10,0x00,0x84,0x40,0x44,0x00,0x82,0x01, 0x11,0x00,0x11,0x11,0x22,0x42,0x00,0x00,0x00,0x00,0x81,0x10,0x11,0x10,0x88,0x44, 0x22,0x00,0x00,0x01,0x80,0x00,0x3F,0x80,0x83,0x80,0x82,0x00,0x87,0xF0,0xE1,0x00, 0x0E,0x20,0xA2,0x3C,0x00,0x00,0x00,0x00,0x80,0x90,0x10,0xE0,0x70,0x38,0x1C,0x00, 0x00,0x01,0x80,0x00,0x00,0x00,0x00,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, 0x80,0x00,0x00,0x00,0x00,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,0x80,0x00, 0x00,0x00,0x00,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,0x80,0x00,0x00,0x00, 0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,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,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,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; i0) { SdData(*pstr++); // д????????? } } //-------?????д???????--------------- void PrintGB(uint x, y, uchar *pstr) //????X????????λ???????????λ??Y????λ??????????????λ { SdCmd(0x00);SdData(0x0c); // ????д?????????????? SdCmd(0x12);SdData(0x31); // ?????RAM????????????? SdCmd(0x60);SdData(x); // ???ù??X??????????????? SdCmd(0x70);SdData(y); // ???ù??Y????????????????? SdCmd(0xb0); while(*pstr>0) { SdData(*pstr++); // д????????? } } //--------??????????------------------------- // 320*240????LCM??LM240128R??? void initLCDM() { //????????? SdCmd(0x00);SdData(0x04);//???????????????????λ??Ч??д?????????????????????????? SdCmd(0x0f);SdData(0x00);//?????ж?????? SdCmd(0x10);SdData(0x00);//?????????????? ??????????????????仯 SdCmd(0x11);SdData(0xe0);//???ù????????? // SdCmd(0x12);SdData(0x31);//????RAM???????????????????????????????????? //?????????????????? SdCmd(0x01);SdData(0x68);//????BUSY??????Ч??0 SdCmd(0x03);SdData(0x00); SdCmd(0x21);SdData(0x1d);//???????????λ??, ??????????????? 240 SdCmd(0x31);SdData(0x7f);//????????±??λ??????????У????128?? //??鹤????????????? SdCmd(0x40);SdData(0x00);//????????????λ??????????????1?? SdCmd(0x20);SdData(0x1d);//????????????λ??????????????????240?? SdCmd(0x50);SdData(0x00);//????????????λ???????У????1?? SdCmd(0x30);SdData(0x7f);//?????????±??λ??????????У????128?? //??????? SdCmd(0x60);SdData(0x00);//???ù??λ??X??????ó??? SdCmd(0x70);SdData(0x00);//???ù??λ??Y??????ó??? SdCmd(0x80);SdData(0x33);//?????????? SdCmd(0x90);SdData(0xff);//??????????λ?????? fr=74.63hz 6Mhz SdCmd(0xf0);SdData(0x80);//??????????GB??????ASCII??0????? SdCmd(0xf1);SdData(0x00);//???????????? } //--------?????RAM?????-------------------- void ClearRAM() { SdCmd(0x12);SdData(0x33);// ??д??2?????RAM???? SdCmd(0x40);SdData(0x00);//????????????λ??????????????1?? SdCmd(0x20);SdData(0x1d);//????????????λ??????????????????240?? SdCmd(0x50);SdData(0x00);//????????????λ???????У????1?? SdCmd(0x30);SdData(0x7f);//?????????±??λ??????????У????128?? SdCmd(0xe0);SdData(0x00);// ????????????00H SdCmd(0xf0);SdData(0x08);// ?????书???D3=1 delayms(10); // ?????????д??????? } //--------???д???????--------------------- void ShowBMP(uchar x,y,width,high,uchar bmp[]) // (x,y)????????????????x??????λ???y?????????? // WHIDTH???????????????????λ????HIGH????????????????????λ?? { uint i,k; SdCmd(0x00);SdData(0x04); // ????д?????????????? SdCmd(0x12);SdData(0x32); // ?????RAM????????????? SdCmd(0x40);SdData(x); //???ù???????????λ?? SdCmd(0x20);SdData(x+width-1); //???ù???????????λ?? SdCmd(0x50);SdData(y); //???ù???????????λ?? SdCmd(0x30);SdData(y+high-1); //???ù????????±??λ?? SdCmd(0x60);SdData(x); //???ù??λ??X???? SdCmd(0x70);SdData(y); //???ù??λ??Y???? SdCmd(0xb0); k=width*high; //?????????? for(i=0;i