CircuitPython library for the NXP PCT2075 Digital Temperature Sensor
Project description
Introduction
CircuitPython library for the NXP PCT2075 Digital Temperature Sensor
Also supports the Microchip TC74
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
Installing from PyPI
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:
pip3 install adafruit-circuitpython-pct2075
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-pct2075
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-pct2075
Usage Example
import time
import board
import adafruit_pct2075
i2c = board.I2C() # uses board.SCL and board.SDA
pct = adafruit_pct2075.PCT2075(i2c)
while True:
print("Temperature: %.2f C"%pct.temperature)
time.sleep(0.5)
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
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
File details
Details for the file adafruit-circuitpython-pct2075-1.1.19.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-pct2075-1.1.19.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3e1fab73f3fea9feb289a0e613994b0c06e90b8fdfa1f71d24a634c45325cf3 |
|
MD5 | 0a3e6e0c9f23e0a5f7dc4d0b2406bba5 |
|
BLAKE2b-256 | 4da71fa39e711fa0733f7bf19c50e79abea630c25a689cb81517bccbf6a7cb6c |
Provenance
File details
Details for the file adafruit_circuitpython_pct2075-1.1.19-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_pct2075-1.1.19-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3a4b8bdaa55b811d94819cfe4e1e87967d082015d66e694595a227dc362f170 |
|
MD5 | c44bb4c2355d1d1708e16047c2cd019c |
|
BLAKE2b-256 | 5985b0b743e59aa5fc49d281d8a09e14f44a861ff89cb685119a27908ceab12f |