bivab / smbus-cffi

Python bindings for Linux SMBus access through i2c-dev using cffi
GNU General Public License v2.0
61 stars 31 forks source link

Add support for I2C_SLAVE_FORCE #20

Closed romainletendart closed 6 years ago

romainletendart commented 6 years ago

Tools like i2cget or i2cset have a "-f" (force) option to allow reading from or writing to a device even if it is busy. This commit makes this functionality available through an extra parameter to all the read/write methods. This new feature is optional and disabled by default.