Create gpio1.py

This commit is contained in:
kristjan-komlosi authored and GitHub committed 2017-06-27 12:50:55 +02:00
1 parent af3ee72a79
commit 324a713eca
1 file changed
+10
+10
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)