diff --git a/gpio1.py b/gpio1.py new file mode 100644 index 0000000..96e6363 --- /dev/null +++ b/gpio1.py @@ -0,0 +1,10 @@ +from machine import Pin +import time +pin12=Pin(12, Pin.IN) +pin13=Pin(13, Pin.OUT) +pin13.value(1) + +while pin12.value()==1: + pass + +pin13.value(0)