I2C Slave and BLE integration

Hi All,

I have to implement an  I2C Slave on my nrf52833 BLE project which is currently working (SDK 2.9.2)

I need some confirmation with the following step:

  • I have added the node into my overlay like this:

  • also I have modified my prj.conf like below

  • I have imported all the collbacks from i2c example below

Code is building correctly but I wonder:

1. are these step ok ?

2. is 0x28 my slave i2c address (the address nrf52833 will respond when an i2c master will query it ? )

3. How can I customize SDA and SCL pins of the nrf52833 slave?

Thanks a lot for supporting me.

Parents
  • Hi

    This seems okay to me. Are you getting any build warnings/errors or does it all seem to build just fine? To get more familiar with adding I2C to your project, please check out the DevAcademy lesson on that available here. Here you can see how to customize your SDA/SCL pins as well.

    Regarding question 2 I'm afraid I don't understand what you mean here. Can you try explaining some more on what you mean by this?

    is 0x28 my slave i2c address (the address nrf52833 will respond when an i2c master will query it ? )

    Best regards,

    Simon

Reply
  • Hi

    This seems okay to me. Are you getting any build warnings/errors or does it all seem to build just fine? To get more familiar with adding I2C to your project, please check out the DevAcademy lesson on that available here. Here you can see how to customize your SDA/SCL pins as well.

    Regarding question 2 I'm afraid I don't understand what you mean here. Can you try explaining some more on what you mean by this?

    is 0x28 my slave i2c address (the address nrf52833 will respond when an i2c master will query it ? )

    Best regards,

    Simon

Children
Related