PaulStoffregen / XPT2046_Touchscreen

Touchscreen Arduino Library for XPT2046 Touch Controller Chip
240 stars 84 forks source link

Added calibration to match the Pixels on screen #12

Open timoxd7 opened 6 years ago

timoxd7 commented 6 years ago

I have added a method to calibrate/map the raw data to the actual pixels on screen. With an example scetch, you can calibrate the display and automatically save the calibration to EEPROM to reuse it in a different scetch. You can still use the library like before without any changes to get raw data.

Please have a look at the diffs.

xtrinch commented 3 years ago

This would be such a great feature to have. +1.