Skip to main content

CircuitPython library for the TI TMP117 Temperature sensor

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython library for the TI TMP117 Temperature sensor

WARNING: Library may not run on some boards with less RAM such as boards using the SAMD21

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-tmp117

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-tmp117

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-tmp117

Usage Example

import time
import board
import adafruit_tmp117

i2c = board.I2C()  # uses board.SCL and board.SDA
tmp117 = adafruit_tmp117.TMP117(i2c)

while True:
    print("Temperature: %.2f degrees C"%tmp117.temperature)
    time.sleep(1)

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_tmp117-1.1.15.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file adafruit_circuitpython_tmp117-1.1.15.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_tmp117-1.1.15.tar.gz
Algorithm Hash digest
SHA256 47a474461ff1236f85eaccd978f2af6f74a81243b5d898143424f488b4ac60f6
MD5 e1da18bcd8cad3441ede5fa692c3267c
BLAKE2b-256 b5b51255f323a65111fb66424a0da8f6c70a51b34f5374c4683db69530723fb2

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_tmp117-1.1.15-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_tmp117-1.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 88e773e7e51217210480b29f22ec67c2859ab48f3c80894c9f5057f3d7e00bd5
MD5 5dd4f9f0b6fbb31447ac591ce21061e5
BLAKE2b-256 4ab21be775265a48b1ea9923472ad9440e3a0d2da1cd445a66cb835917671b93

See more details on using hashes here.

Supported by

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