//===========LCDº¯Êý¶¨Òå=========================== void lcd_initial() { delay_ms(20); WriteComm(0xA4); //ALL Point normal WriteComm(0xA6); //Normal display WriteComm(0xA0); WriteComm(0xC8); WriteComm(0x40); //Initial display line for COM0 WriteComm(0x25); WriteComm(0x81); //SET Register WriteComm(constr);//0x19 //SET constrast WriteComm(0xA2); WriteComm(0x2C); //SET POWER CONTROL WriteComm(0x2E); WriteComm(0x2F); WriteComm(0xaf); //dispaly on }