API
- class touchlab_comm_py.TouchlabComms
TouchlabComms wrapper
- connect(self: touchlab_comm_py.TouchlabComms, port: str) None
Connects to the sensor
- init(self: touchlab_comm_py.TouchlabComms, file_name: str = '') None
Initialise sensor comms
- is_connected(self: touchlab_comm_py.TouchlabComms) bool
Is sensor connected?
- read(self: touchlab_comm_py.TouchlabComms, timeout: SupportsInt = 500) list[float]
Reads and returns data
- read_raw(self: touchlab_comm_py.TouchlabComms, timeout: SupportsInt = 500) list[float]
Reads and returns raw data
- read_register(self: touchlab_comm_py.TouchlabComms, address: SupportsInt, id: SupportsInt, timeout: SupportsInt = 500) bytes
Reads register data
- translate(self: touchlab_comm_py.TouchlabComms, raw: collections.abc.Sequence[SupportsFloat]) list[float]
Translate raw data sample into calibrated values
- version = '0.1.12'
- write_register(self: touchlab_comm_py.TouchlabComms, address: SupportsInt, id: SupportsInt, data: bytes, timeout: SupportsInt = 500) None
Writes register data
- zero(*args, **kwargs)
Overloaded function.
zero(self: touchlab_comm_py.TouchlabComms, taxel_ids: collections.abc.Sequence[typing.SupportsInt]) -> None
Zeroes the sensor
zero(self: touchlab_comm_py.TouchlabComms, data_buf: collections.abc.Sequence[collections.abc.Sequence[typing.SupportsFloat]], taxel_ids: collections.abc.Sequence[typing.SupportsInt]) -> None
Zeroes the sensor with data from a buffer