Skip to contentSkip to conversation

i2c beginner question

DISCUSSION Dirk Reske 1 participant 1 message May 16, 2013 I2C subsystem host drivers

lore
Share & tools
lore

Dirk Reske

author
#0 lore raw

Hallo,

I have to collect data from multiple external i2c devices. My question is, what is the correct way?

1: Open i2-device-file, set slave address, read data, close i2c device file and go on with the next one 2: keep the i2c device file open all the time, and change slave address before every access to device 3: ???

greets
Dirk