8000 drivers/dht/dht.py: Change default import module as machine. · sstobbe/micropython@86e3517 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86e3517

Browse files
drivers/dht/dht.py: Change default import module as machine.
Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
1 parent 0f57ccf commit 86e3517

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/dht/dht.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
from mimxrt import dht_readinto
1010
elif sys.platform == "rp2":
1111
from rp2 import dht_readinto
12-
else:
12+
elif sys.platform == "pyboard":
1313
from pyb import dht_readinto
14+
else:
15+
from machine import dht_readinto
1416

1517

1618
class DHTBase:

0 commit comments

Comments
 (0)
0