i am working on i2c device on zephyr NCS v3.0 i want to read the i2c address . which sample example to follow and what are the changes to be made in the sample example.
i am working on i2c device on zephyr NCS v3.0 i want to read the i2c address . which sample example to follow and what are the changes to be made in the sample example.
Hi ashwini,
I would suggest that you go through our DevAcademy course on I2C here: I2C Driver - Nordic Developer Academy
There isn't a specific "I2C address scanner" sample in the SDK, but you can easily adapt the basic I2C usage samples to scan for devices.
You could also refer the Zephyr samples on I2C: https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/index.html#inter-integrated_circuit_i2c_bus
Best Regards,
Swathy
Hi ashwini,
I would suggest that you go through our DevAcademy course on I2C here: I2C Driver - Nordic Developer Academy
There isn't a specific "I2C address scanner" sample in the SDK, but you can easily adapt the basic I2C usage samples to scan for devices.
You could also refer the Zephyr samples on I2C: https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/index.html#inter-integrated_circuit_i2c_bus
Best Regards,
Swathy