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