|
Post by fixitchris on Jul 9, 2015 6:15:29 GMT -8
I have my GD2 oriented with SD card and jack toward the bottom. Running GD.cmd_calibrate() does calibrate correctly and touches work great, however, I have to run this command on every startup. I added GD.force_calibrate() which solves the problem of calibration on every start up and it works until reboot. After rebooting and removing the call to GD.force_calibrate() the touches are off. I have to touch about 80px above what I am trying to touch.
Thanks Chris
void GDClass::force_calibrate() { self_calibrate(); for (int i = 0; i < 24; i++) EEPROM.write(1 + i, GDTR.rd(REG_TOUCH_TRANSFORM_A + i)); EEPROM.write(0, 0x7c); // is written! }
|
|
|
Post by fixitchris on Jul 10, 2015 11:19:10 GMT -8
Any ideas on this calibration conundrum?
/c
|
|