¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: 7 inch Screen Calibration


 

The values actually end up being written to EEPROM so they will be available the next time you start the program.

Jack, W8TEE

On Friday, March 22, 2019, 9:19:22 PM EDT, Vince Loschiavo <vince320@...> wrote:


Some success tonight.
was able to get the calibration routine running !! yea !!
run through the sets about 20 times...got very close values across each 10..
now I'm not too sure where those values go exactly
Here:
float xMapLowRange1 = 727;
float xMapLowRange2 = 735;
float xMapLowRange3 = 741;
float xMapLowRange4 = 763;
?
float xMapHigh = 338;
float yMapLow = 857;
float yMapHigh = 170;
or somewhere here??
?calty = map(yFinal, 857, 174, 50, 430);? ? ? ?// Jack
?
? range = map(int(calty), 0, 479, 1, 4);
? switch (range) {
? ? //case 1:
? ? ?// caltx = map(xFinal, xMapLowAve1, xMapHighAve, 50, 750); // Map from ADC values to Screen? ? ?// Jack
? ? ? break;
? ? case 1:
? ? ? caltx = map(xFinal, 728, 337, 50, 750); // Map from ADC values to Screen? ? ?// Jack
? ? ? break;
? ? case 2:
? ? ? caltx = map(xFinal, 735, 337, 50, 750); // Map from ADC values to Screen? ? // Jack
? ? ? break;
? ? case 3:
? ? ? caltx = map(xFinal, 741, 337, 50, 750); // Map from ADC values to Screen? ? // Jack
? ? ? break;
? ? case 4:
? ? ? caltx = map(xFinal, 764, 337, 50, 750); // Map from ADC values to Screen? ? // Jack
? ? ? break;
? }



Thanks
Vince
n2aie

Join [email protected] to automatically receive all group messages.