hello i am using nrf52840, with BME280, i have external pullup 10k resistor. how i can disable the internal pullup resistor. i am using this sample code.
hello i am using nrf52840, with BME280, i have external pullup 10k resistor. how i can disable the internal pullup resistor. i am using this sample code.
Hi,
In SDK 13.0.0, the GPIO pins are configured on line 112-131 in the file nrf_drv_twi.c. You can disable internal pullup by changing the defines SCL_PIN_INIT_CONF
and SCL_PIN_INIT_CONF_CLR
from GPIO_PIN_CNF_PULL_Pullup
to GPIO_PIN_CNF_PULL_Disabled
.
Best regards,
Jørgen