Notable changes to the smbus2 project are recorded here.
- SonarCloud quality checks
0.4.0 - 2020-12-05
- Support for SMBus PEC (Packet Error Checking).
- Support for Python 3 type hinting and mypy static type analysis. Type stubs added to the project.
As of this version the SMBusWrapper
class is removed and must be replaced with SMBus
:
# No longer valid!
with SMBusWrapper(1) as bus:
...
# Replace with
with SMBus(1) as bus:
...
- Added Python 3.8 and 3.9 to Travis-CI build config.
- Cleaner docs:
- Removed redundant
README.rst
. README.md
,CHANGELOG.md
andLICENSE
added to dist package.
- Removed redundant
0.3.0 - 2019-09-07
- Missing SMBus commands added:
process_call
,write_block_data
,read_block_data
,block_process_call
. Note that the latter two are normally not supported by pure i2c-devices. - SMBus.init(), SMBus.open():
bus
can be a file path as well (issue #17). - Added enter/exit handler to
SMBus
class. - Expose enumeration of i2c funcs. Previously, smbus.funcs was defined, but its flags were not exported. All flags moved into the
I2cFunc
class and exported that. - Added convenience features making the
i2c_msg
class easier to work with.
- The
SMBusWrapper
class is now considered deprecated. Please replace withSMBus
.
- Removed
__slots__
fromi2c_msg
class. - Whole
i2c_msg_iter
class replaced by a simple generator function with same functionality
0.2.3 - 2019-01-10
- Incorrect
i2c_msg
created in Python 3.x if str input contains ascii chars >= 128.
0.2.2 - 2019-01-03
- SMBus
write_quick
command.
0.2.1 - 2018-06-02
- Ability to force individual r/w operations.
- API docs available on readthedocs.org.
0.2.0 - 2017-08-19
- I2C: Support for i2c_rdwr transactions.
0.1.5 - 2017-05-17
- SMBus support for read and write single bytes without offset/register address.
0.1.4 - 2016-09-18
- Force option for SMBusWrapper class.
0.1.3 - 2016-08-14
- Flag flag for forcing address use even when a driver is already using it.
- Accept zero (0) as bus ID.
- Save address when setting it.
First published version.