diff options
| author | DavePutz <dwputz@gmail.com> | 2020-07-24 20:29:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-24 20:29:53 -0500 |
| commit | 3dfed3c4aa52d06bd2eb1c28d0a1916821cc3f80 (patch) | |
| tree | e585876c4e4d3500ba42dfceeb11c5bd11e7dd74 /shared-module/touchio/TouchIn.c | |
| parent | a14101cd137e56002ff0599d99f8234966786454 (diff) | |
| parent | a6e048686fe6999c4231582b7d9e69a7dc679257 (diff) | |
Merge pull request #15 from adafruit/main
update from main
Diffstat (limited to 'shared-module/touchio/TouchIn.c')
| -rw-r--r-- | shared-module/touchio/TouchIn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shared-module/touchio/TouchIn.c b/shared-module/touchio/TouchIn.c index 88d12b8b8..3fdf3e0ca 100644 --- a/shared-module/touchio/TouchIn.c +++ b/shared-module/touchio/TouchIn.c @@ -31,6 +31,7 @@ #include "py/runtime.h" #include "py/mphal.h" #include "shared-bindings/touchio/TouchIn.h" +#include "shared-bindings/microcontroller/Pin.h" // This is a capacitive touch sensing routine using a single digital // pin. The pin should be connected to the sensing pad, and to ground @@ -67,7 +68,7 @@ static uint16_t get_raw_reading(touchio_touchin_obj_t *self) { } void common_hal_touchio_touchin_construct(touchio_touchin_obj_t* self, const mcu_pin_obj_t *pin) { - claim_pin(pin); + common_hal_mcu_pin_claim(pin); self->digitalinout = m_new_obj(digitalio_digitalinout_obj_t); self->digitalinout->base.type = &digitalio_digitalinout_type; |
