void Wcom_lcd(uint8_t Lcd_com,uint8_t BuysC)
{
uint8_t temp;
if(BuysC)
Check_lcd();
DelayMs(1);
temp=Lcd_com&0xf0;
I2C_WriteSingleRegister(HW_I2C0, 0x27, 0x00, temp);
I2C_WriteSingleRegister(HW_I2C0, 0x27, 0x00, temp|0x0c);
I2C_WriteSingleRegister(HW_I2C0, 0x27, 0x00, temp|0x08);
temp= Lcd_com<<4;
I2C_WriteSingleRegister(HW_I2C0, 0x27, 0x00, temp);
I2C_WriteSingleRegister(HW_I2C0, 0x27, 0x00, temp|0x0c);
I2C_WriteSingleRegister(HW_I2C0, 0x27, 0x00, temp|0x08);
}
|