2008-05-21 17:22:02     two devices in I2C

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-05-21 17:22:02     two devices in I2C

Miquel Soler i Mir (SPAIN)

Message: 56106   




I'm using the framework of I2C from userspace. I'm using two devices and are working fine.I use the same file descriptor "/dev/i2c-0".


My idea is use a diferent file descriptor for each device.


It is possible have two file descriptor of i2C bus?


How I can made this?






Miquel Soler i Mir






2008-05-21 17:47:48     Re: two devices in I2C

Mike Frysinger (UNITED STATES)

Message: 56107   


/dev/i2c-0 represents a bus, it doesnt represent a device


if you want multiple file descriptors, just open the device mutliple times