from machine import Pin
import time
led=Pin(2,Pin.OUT) #Set up pin 16 which is connected to the LED
while True:
led.value(1) #turn the led on
time.sleep(2) #put the pico to sleep for 2 seconds
led.value(0)#turn the led off
time.sleep(2)
from machine import Pin
import time
led=Pin(2,Pin.OUT) #Set up pin 16 which is connected to the LED
while True:
led.value(1) #turn the led on
time.sleep(2) #put the pico to sleep for 2 seconds
led.value(0)#turn the led off
time.sleep(2)