Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:16 19 Nov 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 : GUI CALIBRATE info

Author Message
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1116
Posted: 01:55am 28 Jun 2021
Copy link to clipboard 
Print this post

Can anyone tell me what the five numeric fields reported by GUI CALIBRATE represent?

> gui calibrate                                                                
Done. No errors                                                                
Deviation X = 2, Y = 0 (pixels)                                                
> option list
GUI CALIBRATE 0, 3966, 125, -898, 644
>

Doug
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2831
Posted: 04:10am 28 Jun 2021
Copy link to clipboard 
Print this post

Just a guess, ignoring the zero, perhaps they are decimal versions of the combined X-Y correction factors for the 4 targets. eg x = high byte Y = low byte of 2 byte number. Just speculation though.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 04:31am 28 Jun 2021
Copy link to clipboard 
Print this post

The numbers are correction factors used by MMBasic to translate the numbers generated by the touch controller chip into pixel coordinates.  They mean nothing outside of this.  For what it is worth they represent (in order of listing) Swap XY Coordinates if True, X Zero, Y Zero, X Scaling and Y Scaling.

The line
   GUI CALIBRATE 0, 3966, 125, -898, 644
can be used to configure the touch on an LCD panel from within a BASIC program (see page 70 of the current Micromite User Manual.

Geoff
Geoff Graham - http://geoffg.net
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1116
Posted: 05:03am 28 Jun 2021
Copy link to clipboard 
Print this post

Thanks Phil and Geoff,
Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9757
Posted: 09:23am 28 Jun 2021
Copy link to clipboard 
Print this post

I also was interested in this.
Thanks for the info.
Smoke makes things work. When the smoke gets out, it stops!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8297
Posted: 07:51pm 28 Jun 2021
Copy link to clipboard 
Print this post

If I make a note of the calibration values for a working lcd panel can I simply enter them when a new version of the software is loaded or when that panel is used again?
Edited 2021-06-29 17:58 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 10:25pm 29 Jun 2021
Copy link to clipboard 
Print this post

Yes, just use GUI CALIBRATE at the command prompt.
I have found that the same calibration settings will work with most displays of the same type.
Geoff Graham - http://geoffg.net
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8297
Posted: 05:49am 30 Jun 2021
Copy link to clipboard 
Print this post

Thanks, Geoff.  :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
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