From b9db977a2d9da0bf3f97a67aa1eeaeaebea910e4 Mon Sep 17 00:00:00 2001 From: Nick Moore Date: Thu, 7 Feb 2019 09:47:56 +1100 Subject: [PATCH] Change pin mode to pullup for adafruit/circuitpython#1045 --- ports/nrf/common-hal/rotaryio/IncrementalEncoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/nrf/common-hal/rotaryio/IncrementalEncoder.c b/ports/nrf/common-hal/rotaryio/IncrementalEncoder.c index 20673c340c..a0cfd48d56 100644 --- a/ports/nrf/common-hal/rotaryio/IncrementalEncoder.c +++ b/ports/nrf/common-hal/rotaryio/IncrementalEncoder.c @@ -71,7 +71,7 @@ void common_hal_rotaryio_incrementalencoder_construct(rotaryio_incrementalencode nrfx_gpiote_in_config_t cfg = { .sense = NRF_GPIOTE_POLARITY_TOGGLE, - .pull = NRF_GPIO_PIN_NOPULL, + .pull = NRF_GPIO_PIN_PULLUP, .is_watcher = false, .hi_accuracy = true, .skip_gpio_setup = false