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.22.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit_circuitpython_pct2075-1.1.22.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_pct2075-1.1.22.tar.gz
Algorithm Hash digest
SHA256 c77a10f28afc8ecebca78cebd08b58b70ccf5e267a8aee47a481a15effc6cae9
MD5 b20c8d1c6104fc35471b58461aa2f545
BLAKE2b-256 878cdbe70a5f486e37e645771fde4a4361d57661ac4d22c1d4507d018a5f66ac

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_pct2075-1.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 8e083be9c042777b2dca0a41aab0ee95711b22bd674dd39aa78ca4d930596871
MD5 a9a137eb71297775d6c67f12c77f79d5
BLAKE2b-256 6ab39fb25527be137e09316eb355a61322299a4cf37140fe8749f4cd1b7a98a7

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