Python SBUS client for Sais Burgess serial devices.
Stan Jansen b8761de679 Rename to tinysbus | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
tests | %!s(int64=5) %!d(string=hai) anos | |
tinysbus | %!s(int64=4) %!d(string=hai) anos | |
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
sbustest.py | %!s(int64=4) %!d(string=hai) anos | |
setup.py | %!s(int64=4) %!d(string=hai) anos |
tinysbus is a small Python package for interfacing with SAIA S-Bus devices.
import tinysbus
inst = tinysbus.Instrument(serial_port='/dev/ttyUSB0',
baurate=38400,
address=1)
# Read a single register:
inst.read_register(20)
# Read 4 registers, starting at number 20
inst.read_registers(20, 4)