I am using stm32cubemx to create an I2C project. I am using nucleo64 L476RG to connect with I2C ds2482-100, and another 1-wire DS28EC20 is connected with I2C. I am very new to this project. The first thing I need to figure out is the I2C address for the MX_I2C1_Init()
function, in the line hi2c1.Init.OwnAddress1 = ?
.
My questions are:
For this 3 parts system (microcontroller, I2C, 1-wire), I just want to read data from 1-wire DS28EC20. Is I2C a master or slave?
Shall I find this I2C address in the ds2482-100 datasheet? I could not find the address!