You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
213 B

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