Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:37 17 Sep 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : lcd panel exist?

Author Message
drkl

Senior Member

Joined: 18/10/2015
Location: Hungary
Posts: 102
Posted: 12:56pm 12 Dec 2015
Copy link to clipboard 
Print this post

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 Zealand
Posts: 2447
Posted: 04:10pm 12 Dec 2015
Copy link to clipboard 
Print this post

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: Australia
Posts: 3303
Posted: 05:54pm 12 Dec 2015
Copy link to clipboard 
Print this post

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: Hungary
Posts: 102
Posted: 10:08pm 12 Dec 2015
Copy link to clipboard 
Print this post

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: Australia
Posts: 3303
Posted: 10:31pm 12 Dec 2015
Copy link to clipboard 
Print this post

Good point and easily done. I will put it into the next version.
Geoff Graham - http://geoffg.net
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025