diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2021-08-09 19:07:06 (GMT) |
|---|---|---|
| committer | JF002 <JF002@users.noreply.github.com> | 2021-08-14 19:00:33 (GMT) |
| commit | 10f610b2191ed0783a2f36a5e869019fc548aa24 (patch) | |
| tree | fbfb7f0869bb08b6b5834e926840eb5d5a66d9e6 /src | |
| parent | e51c3eee4ed50ccec55c105fd93a46b7715601b3 (diff) | |
Better pin configuration
Diffstat (limited to 'src')
| -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); |
