0x32,0x49,0x79,0x41,0x3E,0x00, //40 @
0x7E,0x11,0x11,0x11,0x7E,0x00, //41 A
0x41,0x7F,0x49,0x49,0x36,0x00, //42 B
0x3E,0x41,0x41,0x41,0x22,0x00, //43 C
0x41,0x7F,0x41,0x41,0x3E,0x00, //44 D
0x7F,0x49,0x49,0x49,0x49,0x00, //45 E
0x7F,0x09,0x09,0x09,0x01,0x00, //46 F
0x3E,0x41,0x41,0x49,0x7A,0x00, //47 G
0x7F,0x08,0x08,0x08,0x7F,0x00, //48 H
0x00,0x41,0x7F,0x41,0x00,0x00, //49 I
0x20,0x40,0x41,0x3F,0x01,0x00, //4A J
0x7F,0x08,0x14,0x22,0x41,0x00, //4B K
0x7F,0x40,0x40,0x40,0x40,0x00, //4C L
0x7F,0x02,0x0C,0x02,0x7F,0x00, //4D M
0x7F,0x06,0x08,0x30,0x7F,0x00, //4E N
0x3E,0x41,0x41,0x41,0x3E,0x00, //4F O
0x7F,0x09,0x09,0x09,0x06,0x00, //50 P
0x3E,0x41,0x51,0x21,0x5E,0x00, //51 Q
0x7F,0x09,0x19,0x29,0x46,0x00, //52 R
0x26,0x49,0x49,0x49,0x32,0x00, //53 S
0x01,0x01,0x7F,0x01,0x01,0x00, //54 T
0x3F,0x40,0x40,0x40,0x3F,0x00, //55 U
0x1F,0x20,0x40,0x20,0x1F,0x00, //56 V
0x7F,0x20,0x18,0x20,0x7F,0x00, //57 W
0x63,0x14,0x08,0x14,0x63,0x00, //58 X
0x07,0x08,0x70,0x08,0x07,0x00, //59 Y
0x61,0x51,0x49,0x45,0x43,0x00, //5A Z
0x00,0x7F,0x41,0x41,0x00,0x00, //5B {
0x02,0x04,0x08,0x10,0x20,0x00, /*5C \*/
0x00,0x41,0x41,0x7F,0x00,0x00, //5D }
0x04,0x02,0x01,0x02,0x04,0x00, //5E ^
0x40,0x40,0x40,0x40,0x40,0x00, //5F _
0x01,0x02,0x04,0x00,0x00,0x00, //60 '
0x20,0x54,0x54,0x54,0x78,0x00, //61 a
0x7F,0x48,0x44,0x44,0x38,0x00, //62 b
0x38,0x44,0x44,0x44,0x28,0x00, //63 c
0x38,0x44,0x44,0x48,0x7F,0x00, //64 d
0x38,0x54,0x54,0x54,0x18,0x00, //65 e
0x00,0x08,0x7E,0x09,0x02,0x00, //66 f
0x0C,0x52,0x52,0x4C,0x3E,0x00, //67 g
0x7F,0x08,0x04,0x04,0x78,0x00, //68 h
0x00,0x44,0x7D,0x40,0x00,0x00, //69 i
0x20,0x40,0x44,0x3D,0x00,0x00, //6A j
0x00,0x7F,0x10,0x28,0x44,0x00, //6B k
0x00,0x41,0x7F,0x40,0x00,0x00, //6C l
0x7C,0x04,0x78,0x04,0x78,0x00, //6D m
0x7C,0x08,0x04,0x04,0x78,0x00, //6E n
0x38,0x44,0x44,0x44,0x38,0x00, //6F o
0x7E,0x0C,0x12,0x12,0x0C,0x00, //70 p
0x0C,0x12,0x12,0x0C,0x7E,0x00, //71 q
0x7C,0x08,0x04,0x04,0x08,0x00, //72 r
0x58,0x54,0x54,0x54,0x64,0x00, //73 s
0x04,0x3F,0x44,0x40,0x20,0x00, //74 t
0x3C,0x40,0x40,0x3C,0x40,0x00, //75 u
0x1C,0x20,0x40,0x20,0x1C,0x00, //76 v
0x3C,0x40,0x30,0x40,0x3C,0x00, //77 w
0x44,0x28,0x10,0x28,0x44,0x00, //78 x
0x1C,0xA0,0xA0,0x90,0x7C,0x00, //79 y
0x44,0x64,0x54,0x4C,0x44,0x00, //7A z
0x00,0x08,0x36,0x41,0x00,0x00, //7B {
0x00,0x00,0x77,0x00,0x00,0x00, //7C |
0x00,0x41,0x36,0x08,0x00,0x00, //7D }
0x02,0x01,0x02,0x04,0x02,0x00, //7E ~
0xFF,0xFF,0xFF,0xFF,0xFF,0x00, //7F all display
0xFF,0x00,0x00,0x00,0x00,0x00}; //80 cursor
/************* 功能说明 **************
LCD12864的基本驱动程序,兼容IC:HD61202 KS0108B SED1520.
******************************************/
/********************* LCD 128*64 Module, Controler HD61202U *************************************
R_W L: write data to LCD; H: read data from LCD
RS L: Instruction Code Input or state output; H: data input or output
RESET H: normal work; L: reset LCD
CS1 H: disable Pice 1, L:enable Pice 1
CS2 H: disable Pice 2, L:enable Pice 2
CS3 H: disable Pice 3, L:enable Pice 3
E L: disable; H: read State or data from LCD;
H-->L: write command or data to LCD
D0~D7 Data bus
RS R/W
0 0 :write command to LCD
0 1 :read status from LCD
1 0 :write display data to LCD
1 1 :read display data from LCD
// CS1 = SELECT;
// CS2 = SELECT;
WriteCMD(LCD_Off); //0x3E turn off LCD
WriteCMD(LCD_StartLine0); //#0C0H set the start line is the first line
WriteCMD(LCD_On); //#3FH turn on display
FillAll(0);
CS1 = UNSELECT;
CS2 = UNSELECT;
}