Releases: kplindegaard/smbus2
Releases · kplindegaard/smbus2
Quality of Life Update
- Minor version of the lib was bumped because of the "QoL" improvement in 107 , which about object life-cycle to better handle "open -> close -> open" scenarios. Subtle as it is, it should not cause issues upgrading from v0.4.x to 0.5.0 except under some rare and obscure cases containing manual workarounds for similar "open -> close -> re-open" sequences.
- Maintenance updates:
What's Changed
- add .readthedocs.yaml by @thijstriemstra in #106
- Handle re-opening a closed bus by @henrik-nil-acc in #107
- Typing corrections by @yodaldevoid in #109
- fix markup by @thijstriemstra in #114
Full Changelog: 0.4.3...0.5.0
Maintenance release
Housekeeping focused on future proofing:
- Build pipeline updates:
- Added Python 3.11
- Python 2.7, 3.4, and 3.5 no longer tested, but this doesn't affect the status of support by smbus2 code. It only disables the unsupported configuration in the GitHub workflow.
- Update deprecated Sphinx config format.
- Refactored unit tests.
Contributors: @markmentovai, @hramrach
Maintenance update
- Explicitly export from top level of package #69.
- Transitioned pipelines from Travis-CI to GitHub Actions.
- Python 3.10 support added.
Quality update
No functional changes - minor updates only
- Test file added to distro package
- Published smbus2 on sonarcloud.io
Cleanup and PEC support
Changes
- Support for SMBus PEC (Packet Error Checking).
- Support for Python 3 type hinting and mypy static type analysis. Type stubs added to the project.
- Cleaner docs:
- Removed redundant
README.rst
. README.md
,CHANGELOG.md
andLICENSE
added to dist package.
- Removed redundant
Cleanup - discarded code
As of this version the SMBusWrapper
class is removed and must be replaced with SMBus
:
Improved and extended
New/added features
- SMBus.init(), SMBus.open():
bus
can be a file path as well (issue #17). - The folllowing SMBus commands added (last two normally not supported by pure i2c-devices):
process_call
,write_block_data
,read_block_data
,block_process_call
.
- Enter/exit handlers moved to
SMBus
class.
- Expose enumerations of i2c functionality flags in the
I2cFunc
class and exported that. - Added convenience features making the
i2c_msg
class easier to work with.
Deprecation warning
- The
SMBusWrapper
class is now considered deprecated. Please update your code to useSMBus
instead.
Bugfix
SMBus Quick command added
Added an "smbus compatible" method write_quick(addr)
to the SMBus class (issue #7).
0.2.1
- Force single r/w option (PR #20).
- Documentation updates (PR #16 and #14).
- Docs available on readthedocs thanks to @thijstriemstra
Combined i2c read/write transactions
Merge pull request #12 from kplindegaard/feature/i2c_rdwr Support for i2c_rdwr combined transactions