Skip to content

Add threshold. #6

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

Closed
caternuson opened this issue Oct 13, 2018 · 1 comment
Closed

Add threshold. #6

caternuson opened this issue Oct 13, 2018 · 1 comment
Assignees

Comments

@caternuson
Copy link
Contributor

Add a property to query and set threshold that is compliant with touchio API:
https://circuitpython.readthedocs.io/en/3.x/shared-bindings/touchio/TouchIn.html#touchio.TouchIn.threshold

Since threshold can be set per channel, suggest having both a global and a per channel way of doing this, similar to how recalibrate is now. Ex:

cap.threshold = some_value     # set threshold for all inputs
cap[1].threshold = some_value  # set threshold for input 1
@caternuson
Copy link
Contributor Author

Done with #7

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

No branches or pull requests

1 participant