summaryrefslogtreecommitdiff
path: root/drivers/dht/dht.py
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2022-01-02 15:07:33 +0200
committerDamien George <damien@micropython.org>2022-01-06 14:00:03 +1100
commit908e4cf5c3e21c73877686aa233b3dfd49d9083c (patch)
tree869ca3ce3756619fbee64789fe8ba1db0116154f /drivers/dht/dht.py
parent01d9b7adde0ed14002a9d47434ebb633205d45c3 (diff)
rp2: Add support for DHT11 and DHT22 sensors.
Diffstat (limited to 'drivers/dht/dht.py')
-rw-r--r--drivers/dht/dht.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dht/dht.py b/drivers/dht/dht.py
index 322608990..9be23b3ae 100644
--- a/drivers/dht/dht.py
+++ b/drivers/dht/dht.py
@@ -7,6 +7,8 @@ if sys.platform.startswith("esp"):
from esp import dht_readinto
elif sys.platform == "mimxrt":
from mimxrt import dht_readinto
+elif sys.platform == "rp2":
+ from rp2 import dht_readinto
else:
from pyb import dht_readinto