circuitpython/tests/renesas-ra/pin.py
Takeo Takahashi 2f2fd36713 tests/renesas-ra: Update pin test to support all boards.
Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
2022-08-31 12:00:41 +10:00

16 lines
213 B
Python

from machine import Pin
p = Pin("SW1", Pin.IN)
if p.value() == 1:
print("pass")
else:
print("FAIL")
p = Pin("LED1", Pin.OUT)
p.high()
if p.value() == 1:
print("pass")
else:
print("FAIL")
p.low()