nRF52840 configure P0.0 and P0.1 as GPIO

Hello,

I would like to use P0.0 and P0.1 as General GPIO for I2C in nRF52840.

I have run the twi_sensor example in SDK 17, it works well with ARDUINO_SCL_PIN and ARDUINO_SDA_PIN, but when I set 

.scl                = NRF_GPIO_PIN_MAP(0, 1),
.sda               = NRF_GPIO_PIN_MAP(0, 0),
the transmission isn't success.
May I ask how can I configure P0.0 and P0.1 as GPIO for TWI (I'm using nRF52840 DK)?
Thank you!
Parents Reply Children
No Data
Related