How to use I2C on the nRF5340 DK ?

Greetings,

I am trying to develop an application on the nRF5340 DK that requires me to collect data from a sensor using I2C and I am confused on how to do that. I have seen people talking about TWI and others saying that you don't need TWI. On STM32 it was very simple to add, initilialize and use I2C. I hope it is the same for the nRF boards. Can someone please help me out with an example code for the nRF5340 DK ?

Thank you.

Related