Files
nodemcu-fe/Esplorer/_micropython/gpio2.py
kristjan-komlosi 67c0a98ce3 Add files via upload
2017-06-30 08:16:22 +02:00

13 lines
236 B
Python

import pyb
import time
pin = pyb.Pin(2, pyb.Pin.OUT)
for i in range(4):
print('LED ON2')
pin.value(0)
time.sleep(1)
print('LED OFF2')
pin.value(1)
time.sleep(1)
print('2iteration done.')
print("All 2 done.")