kopia lustrzana https://github.com/micropython/micropython
drivers/dht/dht.py: Change default import module as machine.
Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>pull/7063/head
rodzic
0f57ccf7f2
commit
86e35178e6
|
@ -9,8 +9,10 @@ elif sys.platform == "mimxrt":
|
||||||
from mimxrt import dht_readinto
|
from mimxrt import dht_readinto
|
||||||
elif sys.platform == "rp2":
|
elif sys.platform == "rp2":
|
||||||
from rp2 import dht_readinto
|
from rp2 import dht_readinto
|
||||||
else:
|
elif sys.platform == "pyboard":
|
||||||
from pyb import dht_readinto
|
from pyb import dht_readinto
|
||||||
|
else:
|
||||||
|
from machine import dht_readinto
|
||||||
|
|
||||||
|
|
||||||
class DHTBase:
|
class DHTBase:
|
||||||
|
|
Ładowanie…
Reference in New Issue