Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Commit b5f6c77

Browse files
committedApr 20, 2016
Clarify that library works with TMP007 sensor, bump version.
1 parent bfb7571 commit b5f6c77

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed
 

‎README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Adafruit Python TMP006
22
======================
33

4-
Python library for accessing the TMP006 non-contact temperature sensor on a Raspberry Pi or Beaglebone Black.
4+
Python library for accessing the TMP006 & TMP007 non-contact temperature sensor on a Raspberry Pi or Beaglebone Black.
55

66
Designed specifically to work with the Adafruit TMP006 sensor ----> https://www.adafruit.com/products/1296
77

@@ -21,7 +21,8 @@ sudo python setup.py install
2121

2222
Make sure you have internet access on the device so it can download the required dependencies.
2323

24-
See examples of usage in the examples folder.
24+
See examples of usage in the examples folder. Note that the example code and classes
25+
use the TMP006 name but will work fine with a TMP007 sensor too.
2526

2627
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
2728

‎examples/simpletest.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
# Can enable debug output by uncommenting:
2424
#import logging
2525
#logging.basicConfig(level=logging.DEBUG)
26-
2726
import time
2827

28+
# Note that this will work with the TMP007 sensor too! Just use the TMP006
29+
# class below as-is.
2930
import Adafruit_TMP.TMP006 as TMP006
3031

3132

@@ -42,6 +43,8 @@ def c_to_f(c):
4243
#
4344
# For the Beaglebone Black the library will assume bus 1 by default, which is
4445
# exposed with SCL = P9_19 and SDA = P9_20.
46+
#
47+
# Remember this TMP006 code will work fine with the TMP007 sensor too!
4548
sensor = TMP006.TMP006()
4649

4750
# Optionally you can override the address and/or bus number:

‎setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from setuptools import setup, find_packages
44

55
setup(name = 'Adafruit_TMP',
6-
version = '1.5.0',
6+
version = '1.6.0',
77
author = 'Tony DiCola',
88
author_email = 'tdicola@adafruit.com',
9-
description = 'Library for accessing the TMP006 non-contact temperature sensor on a Raspberry Pi or Beaglebone Black.',
9+
description = 'Library for accessing the TMP006 & TMP007 non-contact temperature sensor on a Raspberry Pi or Beaglebone Black.',
1010
license = 'MIT',
1111
url = 'https://github.com/adafruit/Adafruit_Python_TMP/',
1212
dependency_links = ['https://github.com/adafruit/Adafruit_Python_GPIO/tarball/master#egg=Adafruit-GPIO-0.6.5'],

0 commit comments

Comments
 (0)
This repository has been archived.