Skip to main content

CircuitPython library for the NXP PCT2075 Digital Temperature Sensor

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit-circuitpython-pct2075-1.1.21.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit-circuitpython-pct2075-1.1.21.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-pct2075-1.1.21.tar.gz
Algorithm Hash digest
SHA256 55eb646c2c08d8be3a54262fe48f4586d1bb7b51347d6866ac45954c2f473cc5
MD5 0b3278e6e78a3481fdd1802ce699c481
BLAKE2b-256 1fa84ae21edf6a9d3bb24a6bb92cb59a387329522c1506502b7203ec60ce0bd6

See more details on using hashes here.

Provenance

File details

Details for the file adafruit_circuitpython_pct2075-1.1.21-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_pct2075-1.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 78425ec0037a46587a0d08a565e4b13b1f4522812f94e3b58267f3ac4e4fffcd
MD5 dec9b7c08e10c91ddb778b20d139f7a8
BLAKE2b-256 000a8a9607d7e031211c3eb5959a4cfacea6c377c1b376ec51f3b2abb51393f5

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page