Create gpio1.py

This commit is contained in:
kristjan-komlosi
2017-06-27 12:50:55 +02:00
committed by GitHub
parent af3ee72a79
commit 324a713eca

10
gpio1.py Normal file
View File

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