Example code for I2C device , e.g (Si7021)

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
mahmed106
Offline
Last seen:1 month 2 weeks ago
加入:2019-05-03 17:28
Example code for I2C device , e.g (Si7021)

Hi dialog

我对开发工具pro,接口Si7021DA14681 and i cannot find the example project/code to do it.

Can you help me ?

Thanks

Device:
PM_Dialog
Offline
Last seen:21 hours 28 min ago
Staff
加入:2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

I’d suggest you to take a look atI2C Adapter Concepttutorial. This is the only document regarding the I2C.

Thanks, PM_Dialog

TR_Dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2014-06-30 23:52
Hi mahmed106,

Hi mahmed106,

In addition tohttp://lpccs-docs.dialog-semiconductor.com/tutorial_da1468x_adapters_concept_part_2/index.htmlyou can also refer to the peripherals_demo project in SDK 1.0.14.1081.

Thanks,

TR_DIALOG

mahmed106
Offline
Last seen:1 month 2 weeks ago
加入:2019-05-03 17:28
Peripherals demo is a good

Peripherals demo is a good idea

Thanks :)

mahmed106
Offline
Last seen:1 month 2 weeks ago
加入:2019-05-03 17:28
Can you please tell me where

Can you please tell me where in Peripherals demo I2C is used, because for temperature ADC is used.

PM_Dialog
Offline
Last seen:21 hours 28 min ago
Staff
加入:2018-02-08 11:03
Thanks TR_Dialog for your

Thanks TR_Dialog for your indication.

Hi mahmed106

I would suggest you to take a look at section I2C demo of the Readme file in order to find more information. The demo presents the usage of I2C interface with the external devices. It shows read/write operations on external temperature sensor and EEPROM memory. To enable the demo go to the config/default/userconfig.h file and set:

#define CFG_DEMO_HW_I2C (1)

Thanks, PM_Dialog