简体   繁体   English

液晶屏损坏

[英]LCD screen corrupting

I am using an MSP430F5418 with the ST7565R LCD controller with easyGUI. 我将MSP430F5418与带有easyGUI的ST7565R LCD控制器一起使用。 I am using SPI to communicate with the LCD. 我正在使用SPI与LCD通讯。

Suppose I have a screen like this: 假设我有一个这样的屏幕:

实际画面

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: 但是有时候(很少)当我按下一个键(任何使测试板移动的东西,通常是在按下键时出现)时,屏幕会变成这样:

混乱

I didn't do anything on the code for this change... Why did it happen? 对于此更改,我没有对代码做任何事情...为什么会发生?

这听起来像是您的代码中的错误-我不熟悉easyGUI或特定控制器的细节,所以这只是一个疯狂的猜测,但是如果您在代码中的某个地方执行了printfwrite ,然后将stdout转到与您的显示器相同的设备上,并且当这些字符之一是换行符时,或者当该行环绕显示时,该字符将汇总一个字符吗?

I tried by adding the 'Display start line to zero' command before each LCD command so that the screen will never be corrupted. 我尝试在每个LCD命令之前添加“显示起始行为零”命令,以使屏幕永不损坏。 And That works for me :-). 那对我有用:-)。 So it avoid the loose connections while moving the device. 因此,避免在移动设备时松动的连接。

It looks like you are using custom LCD glass. 看来您正在使用自定义LCD玻璃。 If that's the case check your connections between the display controller and the LCD glass. 如果是这种情况,请检查显示控制器和液晶玻璃之间的连接。 If the connections are not good it's possible that the display controller is turning on the wrong segments. 如果连接不好,则显示控制器可能会打开错误的段。

Check the pinout of the LCD glass along with the segments that are programmed to be on vs. the segments that are actually on to see if they are on adjacent pins. 检查LCD玻璃的引脚排列以及已编程为打开的段和实际打开的段,以查看它们是否在相邻的引脚上。 If they are then your connector is likely the problem. 如果它们是您的连接器,则可能是问题所在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM