summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeo Takahashi <takeo.takahashi.xv@renesas.com>2022-04-28 22:16:11 +0900
committerTakeo Takahashi <takeo.takahashi.xv@renesas.com>2022-04-29 12:29:07 +0900
commit86e35178e62ca6976afff9bed4318248224f239b (patch)
tree4fa51ed4af30b50585cdca15463b6386086dee63
parent0f57ccf7f2d396317b41cd90e0599fc7d4d182d8 (diff)
drivers/dht/dht.py: Change default import module as machine.
Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
-rw-r--r--drivers/dht/dht.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dht/dht.py b/drivers/dht/dht.py
index 9be23b3ae..411e9a8d2 100644
--- a/drivers/dht/dht.py
+++ b/drivers/dht/dht.py
@@ -9,8 +9,10 @@ elif sys.platform == "mimxrt":
from mimxrt import dht_readinto
elif sys.platform == "rp2":
from rp2 import dht_readinto
-else:
+elif sys.platform == "pyboard":
from pyb import dht_readinto
+else:
+ from machine import dht_readinto
class DHTBase: