From 138df476219ce773ceb3efa1e2237bffdc371d70 Mon Sep 17 00:00:00 2001 From: Christoph Schultz Date: Fri, 28 Sep 2018 21:28:38 +0200 Subject: [PATCH 1/2] Updated for Python3 support of Raspberry Pi3 --- Adafruit_DHT/platform_detect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Adafruit_DHT/platform_detect.py b/Adafruit_DHT/platform_detect.py index 2d6a1304..5f9ed2d5 100644 --- a/Adafruit_DHT/platform_detect.py +++ b/Adafruit_DHT/platform_detect.py @@ -98,6 +98,9 @@ def pi_version(): elif match.group(1) == 'BCM2709': # Pi 2 return 2 + elif match.group(1) == 'BCM2835': + # Pi 3 + return 2 else: # Something else, not a pi. return None From b2518d3e68c2c7493238f652e598eb9c2afedf58 Mon Sep 17 00:00:00 2001 From: Christoph Schultz Date: Fri, 28 Sep 2018 21:32:49 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index bc29b22a..6087e9f8 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,6 @@ Updated for Python 3 ================================== Tested on a Raspberry Pi 2. +Updated for Support of Pi3 wit Python3 +====================================== +Tested with Pi3 but from time to time the DHT22 returns NONE and the program ends...