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

13 lines
316 B
Python
Raw Permalink Normal View History

2024-04-19 10:47:24 -04:00
import machine
import time
led = machine.Pin(15, 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