Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Python tools for electrical busses such as I2C and SPI.

Status

This package is very much a work in progress, and there is no real documentation yet… There is currently basic support for the Total Phase Aardvark adapter as an I2C master. There is also initial support for a couple I2C slave devices (see bustools/devices/) and the I2C/SPI Activity Board platform.

The public API is not guaranteed to be stable until 1.x release.

Installation

The bustools package can be installed from PyPI using pip:

$ pip install bustools

Support for the Total Phase Aardvark adapter is not included by default since it only supports Windows, Mac OS X, and Linux. To include support for the Aardvark adapter, you need to specify the ‘aardvark’ extra:

$ pip install bustools[aardvark]

Usage

TODO

Examples

The following example uses the Total Phase Aardvark adapter to turn on LED D0 on the I2C/SPI Activity Board.

$ python
Python 2.7.10 (default, Dec  3 2015, 13:28:10)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import bustools.platforms.totalphase.tp240310 as tp240310
>>> import bustools.adapters.aardvark as aardvark
>>> aardvark.print_devices() # find Aardvark devices attached to this system
1 device(s) found:
    port = 0   (avail)  (2237-889465)
>>> with aardvark.Aardvark(0) as adapter:
...     adapter.target_power = True # enable power to the activity board
...     activity_board = tp240310.TP240310(i2c_master=adapter)
...     led = activity_board.d0
...     led.on()

Release files for bustools 0.1.0.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bustools 0.1.0.dev2
File Size Uploaded
bustools-0.1.0.dev2.tar.gz 13.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bustools 0.1.0.dev2
File Interpreter ABI Platform
bustools-0.1.0.dev2-py2-none-any.whl Python 2 none any Details

Total release size: 29.3 kB

Release files / bustools-0.1.0.dev2.tar.gz

Download URL bustools-0.1.0.dev2.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
489b16664a5b6373d394afe8e464c6d477fdb7d4ba74b886ad663b1bcb762f4b
BLAKE2b-256 checksum
How to use checksums
e1c626a65c2ff9fd440fa4b13c54e4e3b710b96b4885acdeab091965cf30f420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bustools-0.1.0.dev2-py2-none-any.whl

Download URL bustools-0.1.0.dev2-py2-none-any.whl
Size 16.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
d3c698753ccf0c68bdc0b45a611dfecf68d4ce80974cf21e8fb7d446db40a56c
BLAKE2b-256 checksum
How to use checksums
2036321bb3ee0ff968c275d4170b87c38d891d349a1f11ab864ba6158d70d162
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page