2024SP-ELE128L/picow-lab-code/Lab10Code/blink.py

14 lines
320 B
Python
Raw Normal View History

2024-04-19 10:47:24 -04:00
import machine
import time
led = machine.Pin("LED", machine.Pin.OUT) #configure GPIO-15 Pin as an output pin and create and led object for Pin class
while True:
led.value(True) #turn on the LED
time.sleep(1) #wait for one second
led.value(False) #turn off the LED
time.sleep(1) #wait for one second