drivers/dht/dht.py: Change default import module as machine.

Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
This commit is contained in:
Takeo Takahashi 2022-04-28 22:16:11 +09:00
parent 0f57ccf7f2
commit 86e35178e6
1 changed files with 3 additions and 1 deletions

View File

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