kopia lustrzana https://github.com/micropython/micropython
test/renesas-ra: Remove unsupported feature test of Pin.
Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>pull/8724/head
rodzic
dd83f48fb2
commit
19c680ff57
|
@ -17,14 +17,6 @@ else:
|
||||||
print("exp: " + try_s)
|
print("exp: " + try_s)
|
||||||
print("out: " + str(p))
|
print("out: " + str(p))
|
||||||
|
|
||||||
p = Pin("SW1", Pin.IN, Pin.PULL_UP)
|
|
||||||
if p.mode() != 1:
|
|
||||||
print("mode: NG")
|
|
||||||
p = Pin("SW1", Pin.IN, pull=Pin.PULL_UP)
|
|
||||||
if p.pull() != 14:
|
|
||||||
print("pull: NG")
|
|
||||||
p = Pin("SW1", mode=Pin.IN, pull=Pin.PULL_UP)
|
|
||||||
|
|
||||||
p.init(p.IN, p.PULL_UP)
|
p.init(p.IN, p.PULL_UP)
|
||||||
p.init(p.IN, pull=p.PULL_UP)
|
p.init(p.IN, pull=p.PULL_UP)
|
||||||
p.init(mode=p.IN, pull=p.PULL_UP)
|
p.init(mode=p.IN, pull=p.PULL_UP)
|
||||||
|
|
Ładowanie…
Reference in New Issue