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:
parent
0f57ccf7f2
commit
86e35178e6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue