Clarify that library works with TMP007 sensor, bump version.

This commit is contained in:
Tony DiCola 2016-04-20 07:25:18 +00:00
parent bfb7571a9f
commit b5f6c77aa7
3 changed files with 9 additions and 5 deletions

View file

@ -1,7 +1,7 @@
Adafruit Python TMP006
======================
Python library for accessing the TMP006 non-contact temperature sensor on a Raspberry Pi or Beaglebone Black.
Python library for accessing the TMP006 & TMP007 non-contact temperature sensor on a Raspberry Pi or Beaglebone Black.
Designed specifically to work with the Adafruit TMP006 sensor ----> https://www.adafruit.com/products/1296
@ -21,7 +21,8 @@ sudo python setup.py install
Make sure you have internet access on the device so it can download the required dependencies.
See examples of usage in the examples folder.
See examples of usage in the examples folder. Note that the example code and classes
use the TMP006 name but will work fine with a TMP007 sensor too.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

View file

@ -23,9 +23,10 @@
# Can enable debug output by uncommenting:
#import logging
#logging.basicConfig(level=logging.DEBUG)
import time
# Note that this will work with the TMP007 sensor too! Just use the TMP006
# class below as-is.
import Adafruit_TMP.TMP006 as TMP006
@ -42,6 +43,8 @@ def c_to_f(c):
#
# For the Beaglebone Black the library will assume bus 1 by default, which is
# exposed with SCL = P9_19 and SDA = P9_20.
#
# Remember this TMP006 code will work fine with the TMP007 sensor too!
sensor = TMP006.TMP006()
# Optionally you can override the address and/or bus number:

View file

@ -3,10 +3,10 @@ use_setuptools()
from setuptools import setup, find_packages
setup(name = 'Adafruit_TMP',
version = '1.5.0',
version = '1.6.0',
author = 'Tony DiCola',
author_email = 'tdicola@adafruit.com',
description = 'Library for accessing the TMP006 non-contact temperature sensor on a Raspberry Pi or Beaglebone Black.',
description = 'Library for accessing the TMP006 & TMP007 non-contact temperature sensor on a Raspberry Pi or Beaglebone Black.',
license = 'MIT',
url = 'https://github.com/adafruit/Adafruit_Python_TMP/',
dependency_links = ['https://github.com/adafruit/Adafruit_Python_GPIO/tarball/master#egg=Adafruit-GPIO-0.6.5'],