I2C driver for the Sensirion SHT4X sensor family
Project description
Python I2C Driver for Sensirion SHT4X
This repository contains the Python driver to communicate with a Sensirion sensor of the SHT4X family over I2C.
Click here to learn more about the Sensirion SHT4X sensor family.
Supported sensor types
| Sensor name | I²C Addresses |
|---|---|
| SHT40 | 0x44, 0x45 |
| SHT41 | 0x44, 0x45 |
| SHT45 | 0x44, 0x45 |
The following instructions and examples use a SHT40.
Connect the sensor
You can connect your sensor over a SEK-SensorBridge. For special setups you find the sensor pinout in the section below.
Sensor pinout
| Pin | Cable Color | Name | Description | Comments |
|---|---|---|---|---|
| 1 | green | SDA | I2C: Serial data input / output | |
| 2 | black | GND | Ground | |
| 3 | yellow | SCL | I2C: Serial clock input | |
| 4 | red | VDD | Supply Voltage | 1.1V to 3.6V |
Documentation & Quickstart
See the documentation page for an API description and a quickstart example.
Contributing
We develop and test this driver using our company internal tools (version
control, continuous integration, code review etc.) and automatically
synchronize the master branch with GitHub. But this doesn't mean that we
don't respond to issues or don't accept pull requests on GitHub. In fact,
you're very welcome to open issues or create pull requests :-)
Check coding style
The coding style can be checked with flake8:
pip install -e .[test] # Install requirements
flake8 # Run style check
In addition, we check the formatting of files with
editorconfig-checker:
pip install editorconfig-checker==2.0.3 # Install requirements
editorconfig-checker # Run check
License
See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sensirion_i2c_sht4x-1.0.0.tar.gz.
File metadata
- Download URL: sensirion_i2c_sht4x-1.0.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.9.6 requests/2.27.1 setuptools/39.0.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ce5ddfae4006f659d1b336bca11f9b22c37cf49ca667573b752a363167c74c1
|
|
| MD5 |
fa643f75a75c4d7ee44543fc05359499
|
|
| BLAKE2b-256 |
2661cb3f414c56bca95d53ffade94ecf9dec5eac0e0dcfa69d55ae315f582f6d
|
File details
Details for the file sensirion_i2c_sht4x-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sensirion_i2c_sht4x-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.9.6 requests/2.27.1 setuptools/39.0.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a2203bd415ffa7296e3f7ab0ad51962938bb13632935499ff5fdfb8bb2a7356
|
|
| MD5 |
ec9ea75eb59616b4d3ae3b5863111a0d
|
|
| BLAKE2b-256 |
3fcfedff2ee2907dfa6615edd3b42ef8fe54f7b86343cadac23e979250d03be1
|