Search code examples
cembeddedmsp430easygui

LCD screen corrupting


I am using an MSP430F5418 with the ST7565R LCD controller with easyGUI. I am using SPI to communicate with the LCD.

Suppose I have a screen like this:

Actual Screen

But sometimes (rarely) when I press a key (anything which make the testing board to move, usually it comes when pressing the key) the screen goes like this:

Jumbled

I didn't do anything on the code for this change... Why did it happen?


Solution

  • I tried by adding the 'Display start line to zero' command before each LCD command so that the screen will never be corrupted. And That works for me :-). So it avoid the loose connections while moving the device.