circuitpython/tests/renesas-ra/pin.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
213 B
Python
Raw Normal View History

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()