mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user