/pyusbmodule

Python interface to expansion modules via USB serial connection.

Primary LanguagePythonApache License 2.0Apache-2.0

pyusbmodule

Travis Build Status Test coverage report

Python interface to expansion modules via USB connection.

Installation

pip3 install -U pyusbmodule

Usage

# the package
from usbmodule import r4i4d

# using class
instr = r4i4d.RelayModule('/dev/ttyUSB0', 1) 
instr.debug = True

# using module method
instr.get_digital_inputs()

License

Apache