Hi all, I'm using the last version of UTFT library for Arduino. I have wired the serial display ITDB02-2.2SP that use the controller HX8340B_S. The library work very fine but a little problem in InitLcd module. When I call InitLcd module the display go in power on and it shown random pixel. It is possible to pre initialize the display memory to black pixel? So the display would start all black.
void UTFT::lcdOff()
{
cbi(P_CS, B_CS);
switch (display_model)
{
case HX8340B_S:
case PCF8833:
LCD_Write_COM(0x28);
break;
}
sbi(P_CS, B_CS);
}
void UTFT::lcdOn()
{
cbi(P_CS, B_CS);
switch (display_model)
{
case HX8340B_S:
case PCF8833:
LCD_Write_COM(0x29);
break;
}
sbi(P_CS, B_CS);
}
all works fine but now when LCD start the back light is on ( so the display appears all white) also if LCD is in off state, I can control the back light?
Sorry I should have said that..I also have this "problem", to fix it (for SSD1289 anyway) I need to manually wire the backlight to a PWM pin (backlight is 3.3V so I need a resistor between PWM pin and LEDs).