Skip to content

Commit 10f610b

Browse files
Riksu9000JF002
authored andcommitted
Better pin configuration
1 parent e51c3ee commit 10f610b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/main.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,12 @@ int main(void) {
302302
nrf_drv_clock_init();
303303

304304
// Unblock i2c?
305-
nrf_gpio_cfg_output(pinTwiScl);
305+
nrf_gpio_cfg(pinTwiScl,
306+
NRF_GPIO_PIN_DIR_OUTPUT,
307+
NRF_GPIO_PIN_INPUT_DISCONNECT,
308+
NRF_GPIO_PIN_NOPULL,
309+
NRF_GPIO_PIN_S0D1,
310+
NRF_GPIO_PIN_NOSENSE);
306311
for (uint8_t i = 0; i < 16; i++) {
307312
nrf_gpio_pin_toggle(pinTwiScl);
308313
nrf_delay_us(5);

0 commit comments

Comments
 (0)