wifi-tally_Oostendam/ESPlorer/script/gpio.py

13 lines
231 B
Python
Raw Normal View History

2021-09-27 19:52:27 +00:00
import pyb
import time
pin = pyb.Pin(2, pyb.Pin.OUT)
for i in range(4):
print('LED ON')
pin.value(0)
time.sleep(1)
print('LED OFF')
pin.value(1)
time.sleep(1)
print('iteration done.')
print("All done.")