diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2021-08-09 19:07:06 (GMT) |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2021-08-09 19:07:06 (GMT) |
| commit | ff81a72533e479388d49334d0ec3e0635b6e7f40 (patch) | |
| tree | bb397769d27df5465aa84e06274935df36b534d8 | |
| parent | d35a54c060700e537d3e39723b7ee9b1d71b36d8 (diff) | |
Better pin configuration
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index a18c394..39d8906 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -302,7 +302,12 @@ int main(void) { nrf_drv_clock_init(); // Unblock i2c? - nrf_gpio_cfg_output(pinTwiScl); + nrf_gpio_cfg(pinTwiScl, + NRF_GPIO_PIN_DIR_OUTPUT, + NRF_GPIO_PIN_INPUT_DISCONNECT, + NRF_GPIO_PIN_NOPULL, + NRF_GPIO_PIN_S0D1, + NRF_GPIO_PIN_NOSENSE); for (uint8_t i = 0; i < 16; i++) { nrf_gpio_pin_toggle(pinTwiScl); nrf_delay_us(5); |
