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

Feature request: Expose CODAL method to calibrate touch pins #209

Closed
microbit-carlos opened this issue May 7, 2024 · 3 comments
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@microbit-carlos
Copy link
Contributor

This has been requested a few times, and I've myself missed having this functionality during a workshop.

Essentially CODAL currently contains pre-calibrated values for the touch pins and touch logo, which it's simple and saves having to run the calibration during startup (which we've found in the past can be confusing if users are holding the micro:bit while it's being flashed).
The disadvantage is that cap touch input stops working when we attach things like crocodile clips or copper tape to the pins, so being able to trigger a recalibration would help resolve this.

Suggested function name would be pin.calibrate() and can use the NRF52Pin.touchCalibrate() CODAL API.
https://github.com/lancaster-university/codal-nrf52/blob/62da916a409c7bc921f17d881e8da1cb35a856a6/inc/NRF52Pin.h#L334

@dpgeorge
Copy link
Collaborator

dpgeorge commented Sep 9, 2024

See #222 for an implementation.

@dpgeorge
Copy link
Collaborator

Implemented in 3f22f30

@microbit-carlos
Copy link
Contributor Author

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

No branches or pull requests

2 participants