![]() |
Forum Index : Microcontroller and PC projects : lcd panel exist?
Author | Message | ||||
drkl![]() Senior Member ![]() Joined: 18/10/2015 Location: HungaryPosts: 102 |
Hello, I would like the program to verify the existence of the LCD panel. There's some possibilities, such as a boolean? Waiting for answer, thanks drk |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2447 |
you mean the TFT colour LCD display, or the monochrome HD44780 display? i recall some mention in an earlier thread of a configured but missing TFT display causing an issue. the HD44780 display, by contrast, is used as a 'write only' device and it being missing can not be detected in code. cheers, rob :-) |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3303 |
The ILI9341 based LCD panels are also "write only", ie, MMBasic does not try to read from them. At this time I cannot think of a method of discovering if the display is actually connected. Geoff Geoff Graham - http://geoffg.net |
||||
drkl![]() Senior Member ![]() Joined: 18/10/2015 Location: HungaryPosts: 102 |
Hi, The problem is that the LCD panel pin definitions like to use for other purposes when there is no LCD panel. It would be good if there is no LCD panel then the MM.MVRES, MM.HRES variables return a zero instead of an error message. drk |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3303 |
Good point and easily done. I will put it into the next version. Geoff Graham - http://geoffg.net |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |