SSD1963 低功耗应用。背光调节除了duty 还有一个系数:DBC manual brightness:duty*00%,
已经调试通过。
void LcdEnterSleep(void)
{
//set PWM
WriteCommand(0xBE); //
WriteData(0x0E); //PLL(120M)/(256*Value)/256=120Hz
// WriteData(0xFF); //duty=X/256
WriteData(0x50); //duty=X/256
WriteData(0x09); //DBC disable PWM enable
//close backlight
WriteData(0x00); //DBC manual brightness:duty*00%
WriteData(0x00); //DBC minimum brightness
WriteData(0x00); //Brightness prescaler :off(system frequency / Divcode / 32768)
//end of PWM
WriteCommand(0x10);
}
void LcdExitSleep(void)
{
WriteCommand(0x11);
//set PWM
WriteCommand(0xBE); //
WriteData(0x0E); //PLL(120M)/(256*Value)/256=120Hz
// WriteData(0xFF); //duty=X/256
WriteData(0x50); //duty=X/256
WriteData(0x09); //DBC enable PWM enable
WriteData(0x80); //DBC manual brightness:duty*50%
WriteData(0x00); //DBC minimum brightness
WriteData(0x00); //Brightness prescaler :off(system frequency / Divcode / 32768)
//end of PWM
}