Hello,
I am using a nrf5340pdk board and I want to connect a sensor using I2C.
Which pin numbers of the board can be used for the SDA and SCL connection?
Do I need to do any configuration e.g. in the prj.conf file?
Thank you!
Hello,
I am using a nrf5340pdk board and I want to connect a sensor using I2C.
Which pin numbers of the board can be used for the SDA and SCL connection?
Do I need to do any configuration e.g. in the prj.conf file?
Thank you!
Hi,
As with any nRF5 series IC, you can use any GPIO for the TWI peripheral (or other serial peripherals like SPI/UART, etc).
By default, the TWI1 is defined in the nRF5340 DK device tree, with the following pin config:
There are some sensor examples in Zephyr, where some support I2C. You may test these out, but they may not work out of the box with nRF5340 DK yet.
Best regards,
Jørgen
Hi,
As with any nRF5 series IC, you can use any GPIO for the TWI peripheral (or other serial peripherals like SPI/UART, etc).
By default, the TWI1 is defined in the nRF5340 DK device tree, with the following pin config:
There are some sensor examples in Zephyr, where some support I2C. You may test these out, but they may not work out of the box with nRF5340 DK yet.
Best regards,
Jørgen