Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setThresholds() and variables to hold the thresholds #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tedtoal
Copy link

@tedtoal tedtoal commented Jul 5, 2023

This change is in response to issue #49.

I added new function setThresholds() to set thresholds, and added new threshold variables and initialized them to the original fixed thresholds.

I needed this change because the fixed Z_THRESHOLD value was about 3X too big for my touchscreen. Rather than edit the value of Z_THRESHOLD in the XPT2036_Touchscreen.cpp file, I figure it is better in the long run to add a function to allow the user to set the thresholds.

If you are not accepting pull requests, I'll clone this library and release it under a modified name, if that is okay with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant