rp2: Add support for DHT11 and DHT22 sensors.

This commit is contained in:
iabdalkader
2022-01-02 15:07:33 +02:00
committed by Damien George
parent 01d9b7adde
commit 908e4cf5c3
4 changed files with 7 additions and 0 deletions

View File

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