From f2799f8408a4d3d105d9457fd9222a942bf57394 Mon Sep 17 00:00:00 2001 From: Zweedeend Date: Tue, 10 Sep 2019 15:38:13 +0200 Subject: [PATCH 1/2] Include Raspberrpy Pi 4 The Raspberry Pi 4 uses the same Broadcom 2835 as the Raspberry Pi 3. The module will work on Raspberry Pi 4 without changes, but the comment makes clear why it works. --- Adafruit_DHT/platform_detect.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Adafruit_DHT/platform_detect.py b/Adafruit_DHT/platform_detect.py index 5465c643..9fce176c 100644 --- a/Adafruit_DHT/platform_detect.py +++ b/Adafruit_DHT/platform_detect.py @@ -80,12 +80,13 @@ def pi_revision(): def pi_version(): """Detect the version of the Raspberry Pi. Returns either 1, 2, 3 or None depending on if it's a Raspberry Pi 1 (model A, B, A+, B+), - Raspberry Pi 2 (model B+), Raspberry Pi 3,Raspberry Pi 3 (model B+) or not a Raspberry Pi. + Raspberry Pi 2 (model B+), Raspberry Pi 3,Raspberry Pi 3 (model B+), Raspberry Pi 4 + or not a Raspberry Pi. """ # Check /proc/cpuinfo for the Hardware field value. # 2708 is pi 1 # 2709 is pi 2 - # 2835 is pi 3 + # 2835 is pi 3 or pi 4 # 2837 is pi 3b+ # Anything else is not a pi. with open('/proc/cpuinfo', 'r') as infile: @@ -103,7 +104,7 @@ def pi_version(): # Pi 2 return 2 elif match.group(1) == 'BCM2835': - # Pi 3 + # Pi 3 or Pi 4 return 3 elif match.group(1) == 'BCM2837': # Pi 3b+ From 8f5e2c4d6ebba8836f6d31ec9a0c171948e3237d Mon Sep 17 00:00:00 2001 From: "Limor \"Ladyada\" Fried" Date: Mon, 11 Nov 2019 20:53:46 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d8fc6269..08a79c79 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,13 @@ -Adafruit Python DHT Sensor Library -================================== +*DEPRECATED LIBRARY* Adafruit Python DHT Sensor Library +======================= + +his library has been deprecated! We are leaving this up for historical and research purposes but archiving the repository. + +We are now only supporting the use of our CircuitPython libraries for use with Python. + +Check out this guide for info on using DHT sensors with the CircuitPython library: https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/python-setup + +--------------------------------------- Python library to read the DHT series of humidity and temperature sensors on a Raspberry Pi or Beaglebone Black.