You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to support named devices for USB-I2C adapters such as tiny-i2c-usb because their bus number will not be consistent between restarts. However, we can create symlinks using udev. Currently, I just symlink to /dev/i2c-my-bus1 and use "my-bus1" as bus id in smbus2. Works as a hack but it is probably not intended this way.
The text was updated successfully, but these errors were encountered:
* SMBus.__init__(), SMBus.open(): `bus` can be a file path as well (issue #17).
* Whole class i2c_msg_iter replaced by a simple generator function which has the same functionality
* Added enter/exit handler to `SMBus` class.
* Added i2c_write and i2c_read, some very basic and most simple read/write operations.
* Additional test cases
It would be nice to support named devices for USB-I2C adapters such as tiny-i2c-usb because their bus number will not be consistent between restarts. However, we can create symlinks using udev. Currently, I just symlink to /dev/i2c-my-bus1 and use "my-bus1" as bus id in smbus2. Works as a hack but it is probably not intended this way.
The text was updated successfully, but these errors were encountered: