Skip to main content

Pure Python implementation of the I2C SMBus protocol.

Project description

The pysmbus package is a pure Python reimplentation of the [python-smbus](http://www.lm-sensors.org/browser/i2c-tools/trunk/py-smbus/) package. This allows using the I2C SMBus protocol without having to compile C.

It has the same module name, smbus, as python-smbus, so that it can be used as a direct replacement in projects that normally depend on python-smbus.

Currently it’s incomplete. The following methods are implemented:

  • write_byte_data

  • read_byte_data

Other methods haven’t been implemented yet, since I don’t have any hardware needing those methods. Patches or requests for other methods are welcome.

This package has been comfirmed working with Python 2.7 and 3.4.

Example

from smbus import SMBus

bus = SMBus(1) # Opens /dev/i2c-1 bus.write_byte_data(0x54, 0x13, 0xff)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysmbus-0.1-3.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file pysmbus-0.1-3.tar.gz.

File metadata

  • Download URL: pysmbus-0.1-3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysmbus-0.1-3.tar.gz
Algorithm Hash digest
SHA256 f5158b36aae7f8685fbb52da5ec8a6f242a15d74aa3cfc288ad19e917586c2c9
MD5 68dff2068e0ea1dc5ae61069af5eb4e8
BLAKE2b-256 a1d868240a0e2a9ae5b67a08014d5ba183ac312cc65cfe52eec5e6048d377e6d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page