DustinWatts / FreeTouchDeck

For interfacing with Windows/macOS/Linux using an ESP32, a touchscreen and BLE.
https://www.youtube.com/dustinwatts
MIT License
626 stars 128 forks source link

Touchscreen calibration not working #59

Closed danielhunt closed 3 years ago

danielhunt commented 3 years ago

@DustinWatts do you happen to have the values for the calibration array handy? While uploading new contents for the data directory (while iterating on #57) I seem to have accidentally wiped the existing config 😢

If you have them handy I can just overwrite the existing values 👍

danielhunt commented 3 years ago

I forgot to add: While rebooting the device prompts for me to calibrate the screen, but it doesn't recognise, respond to, or store any boundary information, so touch doesn't work after boot is complete

DustinWatts commented 3 years ago

I do not have that data ready for you as that is completely done by code and always lives in the SPIFFS. But you can re-calibrate whenever you want by typing cal reset (technically cal is enough) in the serial monitor (No Line Ending). This will erase the calibration file, reboot, and start the calibration over again.

Just realized, are you using the ESP32 TouchDown? If so, you do not need calibration as this is the capacitive touch screen. If you uncomment #define USECAPTOUCH works without calibration (just make sure you have the FT6236 library installed).

danielhunt commented 3 years ago

🤦 #define USECAPTOUCH was the problem.

I was jumping between branches and forgot to uncomment that again before my next build. Thank you for the quick response @DustinWatts 👍

DustinWatts commented 3 years ago

No problem, I thought I remembered you were using the ESP32 TouchDown :)