Skip to content

sneakypete81/usb_iss

Repository files navigation

USB-ISS Python Library

PyPi TravisCI Documentation Status

Python library for the USB-ISS module.

USB ISS Module

Documentation

USB-ISS hardware module:
https://www.robot-electronics.co.uk/htm/usb_iss_tech.htm
USB-ISS Python library (this project):
https://usb-iss.readthedocs.io

Features

  • Supports all USB-ISS functions (I2C, IO, SPI, Serial)
  • Cross-platform (Windows, Linux, MacOS, BSD)
  • Comprehensive documentation and unit test suite

Usage Example

from usb_iss import UsbIss, defs

# Configure I2C mode

iss = UsbIss()
iss.open("COM3")
iss.setup_i2c()

# Write and read back some data
# NOTE: I2C methods use 7-bit device addresses (0x00 - 0x7F)

iss.i2c.write(0x62, 0, [0, 1, 2]);
data = iss.i2c.read(0x62, 0, 3)

print(data)
# [0, 1, 2]

Installing

pip install usb-iss

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.