-
Notifications
You must be signed in to change notification settings - Fork 27
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 set and get touch modes for touch pins #14
Comments
The uBit object already constructs these with the appropriate defaults, but there should be a way to switch them over to the other modes. This is done in CODAL by calling isTouched() with an argument to determine the mode https://github.com/lancaster-university/codal-nrf52/blob/master/source/NRF52Pin.cpp#L520 Here's usage in MakeCode... Pins that can have their touchmode changed
(this list is defined by the hardware because these pins have 10M pullups that make the resistive mode work)
Proposed Python API:
|
|
Gave this a test and all looks good, thanks Damien! |
To be able to set and get the touch model for the logo and touch pins, between capacitive and resistive.
The default modes should be (I believe this part is implemented already):
The text was updated successfully, but these errors were encountered: