Better pin configuration
This commit is contained in:
parent
d35a54c060
commit
ff81a72533
1 changed files with 6 additions and 1 deletions
|
@ -302,7 +302,12 @@ int main(void) {
|
||||||
nrf_drv_clock_init();
|
nrf_drv_clock_init();
|
||||||
|
|
||||||
// Unblock i2c?
|
// 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++) {
|
for (uint8_t i = 0; i < 16; i++) {
|
||||||
nrf_gpio_pin_toggle(pinTwiScl);
|
nrf_gpio_pin_toggle(pinTwiScl);
|
||||||
nrf_delay_us(5);
|
nrf_delay_us(5);
|
||||||
|
|
Loading…
Reference in a new issue