Nothing but vertical lines on LCD
I have connected and initialized my SDT042TFT according to the application note found here: http://forum.displaytech-us.com/composition/attachment/aa4014e6f0dbfb7d811331b25facd43a/906950/dt042tft%20application%20note_8bit%208080%20interface-v10.pdf
But I cannot get the display to work properly. After initialization, the display is filled with alternating black and white vertical lines. And any subsequent attempt to set the pixels doesn't do anything. Anyone have any idea what's going on?
I may be the only one on this forum based on the lack of responses, but this is what I found out:
The vertical line pattern appears to be the default start-up configuration for the display. Once I figured out how to write to a specific pixel, I was able to "erase" the vertical line pattern by writing WHITE to all pixels.
// erase the entire screen
lcd_command(0x0200); // Y-position (0 - 239)
lcd_data(0x0000); // Y = 0
lcd_command(0x0201); // X-position (0 - 431)
lcd_data(0x0000); // X = 0
lcd_command(0x0202); // Write the data (address increments after each write)
for ( i = 0; i < 103680; i++ )
{
lcd_data(0xFFFF);
}
Hi Simonb,
Which hw are u using to interface to the 4.2" ? If you are using the pic controller, our demo code should load the example graphics on using the microchip gfx library. I will recommend putting on the demo code is possible to make sure hw is functioning properly.
Please let me know if you ahve any luck in trying this out.
Thanks.