This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I2C function sdk v1.6.0-rc2

Hello,

I need to connect a custom I2C device to the nRF52-DK, and I am using the sdk v1.6.0-rc2.

I am new to this development environment and I don't know how to initialize I2C and what functions to use to write / read a register with I2C.

There is a minimal example where I can see how to initialize the i2c bus (i2c0) and what are the functions to write and read on the i2c bus.

I have seen the examples in the sdk, but I cannot understand how it works.

Thanks in advance.

Parents
  • Hi There,

    I am also trying to do similar thing by connecting nRFDK with my custom sensor which is using I2C (bit-bang).

    If you folks have this working can anyone share the sample code? I don't find I2C sample in even the latest 1.8.0 nRF Connect SDK.

    Also, Heidi, the link which you shared for sample git code is not reachable.

    Any help would be great.

     Thanks.

Reply
  • Hi There,

    I am also trying to do similar thing by connecting nRFDK with my custom sensor which is using I2C (bit-bang).

    If you folks have this working can anyone share the sample code? I don't find I2C sample in even the latest 1.8.0 nRF Connect SDK.

    Also, Heidi, the link which you shared for sample git code is not reachable.

    Any help would be great.

     Thanks.

Children
Related