//------------------------------------------------- // Shenzhen TOPWAY Technology Co.,Ltd. // System: W78E516D(12MHz, 6T) // LCD Module: LMT024DNHFWL // Display Size: 240RGBx320 // Driver/Controller: ILI9341 // Interface: 80 mode BUS mode // rev 00: dong 2017-09-20 // note: new //------------------------------------------------- #include #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 xdata CmdPort _at_ 0x0000; uchar xdata DataPort _at_ 0x8000; // using 8051 RAM bus as // LCD.RS connect 8051.A15 // LCD.WR connect 8051.WR // LCD.RD connect 8051.RD // i.e. // pointer 0x0nnn for RS=0 // pointer 0x8nnn for RS=1 sbit _CS = P3^4; sbit _RST = P3^5; uchar bdata btemp; // create a bit accessable byte sbit btemp_b0 = btemp^0; sbit btemp_b1 = btemp^1; sbit btemp_b2 = btemp^2; sbit btemp_b3 = btemp^3; sbit btemp_b4 = btemp^4; sbit btemp_b5 = btemp^5; sbit btemp_b6 = btemp^6; sbit btemp_b7 = btemp^7; uchar VCOMH; uchar VCOML; uchar VCOMOFFSET; #define RED 0xf800 #define GREEN 0x07e0 #define BLUE 0x001f #define YELLOW 0xffe0 #define CYAN 0x07ff #define MAGENTA 0xf81f #define BLACK 0x0000 #define WHITE 0xffff #define mid_re 0x8000 #define mid_or 0x8200 #define mid_ye 0x8400 #define mid_yg 0x4400 #define mid_gr 0x0400 #define mid_gc 0x0408 #define mid_cy 0x0410 #define mid_cb 0x0210 #define mid_bl 0x0010 #define mid_bm 0x4010 #define mid_ma 0x8010 #define mid_mr 0x8008 #define GRAY00 0x0000 #define GRAY01 0x1082 #define GRAY02 0x2104 #define GRAY03 0x3186 #define GRAY04 0x4208 #define GRAY05 0x528a #define GRAY06 0x630c #define GRAY07 0x738e #define GRAY08 0x8410 #define GRAY09 0x9492 #define GRAY10 0xa514 #define GRAY11 0xb596 #define GRAY12 0xc618 #define GRAY13 0xd69a #define GRAY14 0xe71c #define GRAY15 0xffff uchar code LOGO125x24[]={ 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B, 0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0XEF,0X7B, 0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0XEF,0X7B,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0XEF,0X7B, 0XEF,0X7B,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0XEF,0X7B,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00, 0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,}; //----------------------------------- // delayms routine //----------------------------------- void delayms(uint m) // 12MHz Xtal, close to ms value { uint j; uint i; for(i=0; i>8; // move the upper byte to low byte temp2 = X&0x00ff; // mask the upper byte SdData(temp1); SdData(temp2); X=X+w-1; temp1 = X>>8; // move the upper byte to low byte temp2 = X&0x00ff; // mask the upper byte SdData(temp1); SdData(temp2); // Y=Y-1; SdCmd(0x2b); // set_page_address temp1 = Y>>8; // move the upper byte to low byte temp2 = Y&0x00ff; // mask the upper byte SdData(temp1); SdData(temp2); Y=Y+h-1; temp1 = Y>>8; // move the upper byte to low byte temp2 = Y&0x00ff; // mask the upper byte SdData(temp1); SdData(temp2); SdCmd(0x2c);// write_memory_start _CS=0; for (i=0; i<(w*h*2); i++) { temp=*(Data+i); DataPort=temp; // write the 8bit data (toggle /WR) } _CS=1; } //=============================================== // fill full screen //=============================================== void FillFullScn(uint color) { uchar i,j; uchar Col_hi,Col_lo; Col_hi=color>>8; Col_lo=color; SdCmd(0x2a); SdData(0x00); SdData(0x00); SdData(0x00); SdData(0xef); //column address SdCmd(0x2b); SdData(0x00); SdData(0x00); SdData(0x01); SdData(0x3f); //page address SdCmd(0x2c);//write display data _CS=0; for(j=0;j<6;j++) for(i=0;i<200;i++) { DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; DataPort=Col_hi;DataPort=Col_lo; } _CS=1; } void FillBox(uint color,x1,y1,w,h) // Start Column address:x1,Start page: y1,picture withd :w,picture height :h { uint x2,y2; uchar i,j; uchar Col_hi,Col_lo; Col_hi=color>>8; Col_lo=color; x2=x1+w-1; y2=y1+h-1; SdCmd(0x2a); SdData(x1>>8); SdData(x1); SdData(x2>>8); SdData(x2);//column address SdCmd(0x2b); SdData(y1>>8); SdData(y1); SdData(y2>>8); SdData(y2); //page address SdCmd(0x2c);//write display data _CS=0; for(j=0;j>8; Col_lo=color; x2=x1+29; y2=y1+29; SdCmd(0x2a); SdData(x1>>8); SdData(x1); SdData(x2>>8); SdData(x2); //column address SdCmd(0x2b); SdData(y1>>8); SdData(y1); SdData(y2>>8); SdData(y2); //page address SdCmd(0x2c);//write display data _CS=0; for(j=0;j<15;j++) { for(i=0;i<15;i++) { DataPort=Col_hi; DataPort=Col_lo; DataPort=0x00; DataPort=0x00; } for(i=0;i<15;i++) { DataPort=0x00; DataPort=0x00; DataPort=Col_hi; DataPort=Col_lo; } } _CS=1; } //----------------------------------------------- // initial IC //----------------------------------------------- void initLCDM() { VCOMH=0x28; /* VCOMH = 3.70V */ VCOML=0x25; /* VCOML = -1.575V */ VCOMOFFSET=0xc4; /* offset VCOMH and VCOML -14 steps, details TBD */ _RST=1; delayms(10); // wait for all power stable _RST=0; delayms(1); // reset pulse _RST=1; delayms(800); // wait till internal reset routine finish SdCmd(0xcf); /* undocumented command from IC example */ SdData(0x00); SdData(0xC1); /* Changed from 0x81 to 0xC1 */ SdData(0x30); SdCmd(0xed); /* undocumented command from IC example */ SdData(0x64); SdData(0x03); SdData(0x12); SdData(0x81); SdCmd(0xe8); /* undocumented command from IC example */ SdData(0x85); SdData(0x10);// SdData(0x7a); SdCmd(0xcb); /* AP[2:0], undocumented cmd from IC example */ SdData(0x39); SdData(0x2c); SdData(0x00); SdData(0x34); SdData(0x02); SdCmd(0xf7); /* undocumented cmd from IC example */ SdData(0x20); SdCmd(0xea); /* undocumented cmd from IC example */ SdData(0x00); SdData(0x00); SdCmd(0xc0); /* Power Control 1 */ SdData(0x21); /* VRH[5:0], details TBD */ SdCmd(0xc1); /* Power Control 2 */ SdData(0x11); /* SAP[2:0], BT[3:0] */ SdCmd(0xc5); /* VCOM Control 1 */ SdData(VCOMH); /* VCOMH = 3.70V */ SdData(VCOML); /* VCOML = -1.575V */ /* compromise value for Tianma and EDT */ SdCmd(0xc7); /* VCOM Control 2 */ SdData(VCOMOFFSET); /* offset VCOMH and VCOML -14 steps, details TBD */ SdCmd(0x36); /* Memory Access Control */ SdData(0x48); /* BGR sub-pixel ordering on panel */ SdCmd(0xb1); /* Frame Rate Control */ SdData(0x00); /* fosc/1 */ SdData(0x1f); /* 31 clocks/line (61Hz) */ SdCmd(0xb6); /* Display Function Control */ SdData(0x0a); /* non-display area scan mode */ SdData(0x82); /* default output scan direction = S1->S270 */ SdCmd(0xf2); /* 3Gamma function disable */ SdData(0x00); SdCmd(0x26); /* gamma curve selected, from IC example */ SdData(0x01); /* details TBD */ SdCmd(0xE0); SdData(0x00); SdData(0x21); SdData(0x1D); SdData(0x0A); SdData(0x10); SdData(0x09); SdData(0x4B); SdData(0xA9); SdData(0x3A); SdData(0x0A); SdData(0x10); SdData(0x04); SdData(0x14); SdData(0x15); SdData(0x00); SdCmd(0xE1); SdData(0x0F); SdData(0x1C); SdData(0x22); SdData(0x05); SdData(0x11); SdData(0x06); SdData(0x34); SdData(0x56); SdData(0x46); SdData(0x05); SdData(0x0F); SdData(0x0B); SdData(0x29); SdData(0x3A); SdData(0x0F); SdCmd(0x3a); /* Pixel format Set */ SdData(0x55); /* BGR = 16 BPP,MCU = 16bit pixel*/ // SdData(0x66); /* BGR = 16 bpp,MCU = 16bit pixel */ SdCmd(0x28); /* Display Off */ SdCmd(0x00); /* NOP */ SdCmd(0x11); /* Sleep Out */ delayms(130); /* spec 120ms min */ SdCmd(0x29); /* Display On */ } //----------------------------------- // Main Program //----------------------------------- void main() { EA=0; // no interrupt _CS = 1; _RST = 1; initLCDM(); FillFullScn(BLACK); FillBox(mid_re, 2, 1,53,72); Checker30x30(RED, 14, 22); FillBox(mid_or, 2, 83,53,72); FillBox(mid_ye, 2,165,53,72); FillBox(mid_yg, 2,247,53,72); FillBox(mid_gr,63, 247,53,72); Checker30x30(GREEN,75,268 ); FillBox(mid_gc,124,247,53,72); FillBox(mid_cy,185,247,53,72); FillBox(mid_cb,185,165,53,72); FillBox(mid_bl,185, 83,53,72); Checker30x30(BLUE,197,104); FillBox(mid_bm,185, 1,53,72); FillBox(mid_ma,124, 1,53,72); FillBox(mid_mr, 63, 1,53,72); ShowBMP(58,148,125,24,LOGO125x24); while(1); } //end