Skip to content

Releases: kplindegaard/smbus2

Quality of Life Update

19 Oct 09:13
51608b0
Compare
Choose a tag to compare
  • 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:
    • Documentation builds again! 106.
    • Typing corrections. 109.
    • Python 3.12, 3.13 added.

What's Changed

Full Changelog: 0.4.3...0.5.0

Maintenance release

25 Aug 19:55
141937d
Compare
Choose a tag to compare

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

05 Jun 07:37
f491628
Compare
Choose a tag to compare
  • Explicitly export from top level of package #69.
  • Transitioned pipelines from Travis-CI to GitHub Actions.
  • Python 3.10 support added.

Quality update

17 Jan 18:55
350e3b5
Compare
Choose a tag to compare

No functional changes - minor updates only

  • Test file added to distro package
  • Published smbus2 on sonarcloud.io

Cleanup and PEC support

05 Dec 17:53
013db7b
Compare
Choose a tag to compare

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 and LICENSE added to dist package.

Cleanup - discarded code

As of this version the SMBusWrapper class is removed and must be replaced with SMBus:

Improved and extended

07 Sep 10:13
Compare
Choose a tag to compare

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 use SMBus instead.

Bugfix

13 Jan 12:20
Compare
Choose a tag to compare

Fixed #32: Incorrect i2c_msg write object created in Python 3.x from string if ascii characters >= 128.

SMBus Quick command added

03 Jan 03:05
c3c0eca
Compare
Choose a tag to compare

Added an "smbus compatible" method write_quick(addr) to the SMBus class (issue #7).

0.2.1

02 Jun 15:58
Compare
Choose a tag to compare

Combined i2c read/write transactions

19 Aug 19:05
Compare
Choose a tag to compare
Merge pull request #12 from kplindegaard/feature/i2c_rdwr

Support for i2c_rdwr combined transactions