ADS7843: Use pressure measurement for touch detection and different filtering #503
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tried using the ADS7843 driver with this display: http://hiletgo.com/ProductDetail/2157216.html. I found the touch detection to not be very good; if I held my finger firmly on the display it would go back and forth between pressed or not.
With a little reading, it seems that the recommended approach is to use the Z registers for a pressure calculation, and this seems to work much better at identifying when the screen is touched, at least for this display.
I'm hesitant to recommend this, because even though this works much better for me, it is changing the driver behavior in ways that may affect other projects. At the same time, I found this driver to be essentially unusable as-is. I'm interested in feedback on how best to proceed from anyone interested.