sm_tc
This is the python library to control the Eight Thermocouples DAQ 8-Layer Stackable HAT for Raspberry Pi.
Install
sudo pip install SMtc
Usage
~$ python
Python 3.10.7 (main, Nov 7 2022, 22:59:03) [GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sm_tc
>>> tc = sm_tc.SMtc(0)
>>> tc.get_temp(1)
26.5
>>>
More usage example in the examples folder
Functions prototype
class sm_tc.SMtc(stack = 0, i2c = 1)
- Description
- Init the SMtc object and check the card presence
- Parameters
- stack : Card stack level [0..7] set by the jumpers
- i2c : I2C port number, 1 - Raspberry default , 7 - rock pi 4, etc.
- Returns
- card object
set_sensor_type(channel, val)
- Description
- Set one channel thermocouple input type
- Parameters
- channel: The input channel number 1 to 8
- val: The thermocouple type [0..7] -> [B, E, J, K, N, R, S, T]
- Returns
- none
get_sensor_type(channel)
- Description
- Get one channel thermocouple input type
- Parameters
- channel: The input channel number 1 to 8
- Returns
- The thermocouple type [0..7] -> [B, E, J, K, N, R, S, T]
print_sensor_type(channel)
- Description
- Print one channel thermocouple input type [B, E, J, K, N, R, S, T]
- Parameters
- channel: The input channel number 1 to 8
- Returns
- none
get_temp(channel)
- Description
- Get one channel measured temperature in degee Celsious
- Parameters
- channel: The input channel number 1 to 8
- Returns
- Temperature in degree Celsious
Metadata
Release files for smtc 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smtc-1.0.1.tar.gz | 3.8 kB | Without provenance | Details for smtc-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smtc-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for smtc-1.0.1-py2.py3-none-any.whl |
Total release size: 7.5 kB
Release files / smtc-1.0.1.tar.gz
| Download URL | smtc-1.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6941eb032a024e8d936ff7c7997aff60b3e80196c750eb64d51f0cc595bfa8a3
|
|
BLAKE2b-256 checksum How to use checksums |
edce2d7f6b01d661b85454744530279a82ddad7d5c5f49c8880dbe2465f1f6d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Release files / smtc-1.0.1-py2.py3-none-any.whl
| Download URL | smtc-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
32dc68438291c2985e73d94269dfe6625616385880f1414c5fd4bc608962374f
|
|
BLAKE2b-256 checksum How to use checksums |
8a4b916ddc2670cbc45eb455a50255c21776807a38e7466fbab587df116db471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Security for smtc 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.