mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
rp2: Add support for DHT11 and DHT22 sensors.
This commit is contained in:
committed by
Damien George
parent
01d9b7adde
commit
908e4cf5c3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user