BMP280 Digital Pressure Sensor Driver for Python3
BMP280 is a digital pressure sensor manufactured by Bosch Sensortec. With this driver, you can use BMP280 with Python3 over I2C.
Dependencies
Only smbus2 other than Python.
Installation
pip3 install bmp-280
Usage
run-bmp280
or
from bmp_280 import BMP280
from time import sleep
bmp = BMP280(port=1, mode=BMP280.FORCED_MODE, oversampling_p=BMP280.OVERSAMPLING_P_x16, oversampling_t=BMP280.OVERSAMPLING_T_x1,
filter=BMP280.IIR_FILTER_OFF, standby=BMP280.T_STANDBY_1000)
pressure = bmp.read_pressure()
temp = bmp.read_temperature()
print("Pressure (hPa): " + str(pressure))
print("Temperature (°C): " + str(temp))
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for bmp-280 0.1.2
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 | |
|---|---|---|---|---|
| bmp_280-0.1.2.tar.gz | 3.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bmp_280-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / bmp_280-0.1.2.tar.gz
| Download URL | bmp_280-0.1.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0eac030e85c71172b44606ba464aaf1d5661d91dc17877915fcf175437df9f47
|
|
BLAKE2b-256 checksum How to use checksums |
0fc1004abf9e482bc13f16c0f0ad395ed09d0775adfd6be73e2a53ef2f8ae8e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
|
Release files / bmp_280-0.1.2-py3-none-any.whl
| Download URL | bmp_280-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29b06789cd9221507ea5af76e5abae4a4ec25d74429210a3886b5449493aee2e
|
|
BLAKE2b-256 checksum How to use checksums |
f3310f3eff5d87458e5e614e281631867a9e7959c8329388c6834a47ab668e99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
|
Security for bmp-280 0.1.2
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.