import machine
import time
led = machine.Pin(15, machine.Pin.OUT)
while True:
led.value(1) # Turn on LED
time.sleep(1)
led.value(0) # Turn off LED
time.sleep(1)
# Circuit 1: LED Blinking Circuit
# Problem Statement / Objective:
# Create a circuit with a single LED connected to the Raspberry Pi Pico. Write a MicroPython program to blink the LED on and off with a 1-second interval.
# Components:
# Raspberry Pi Pico
# 1 x LED
# 1 x 220Ω resistor
# Breadboard
# Jumper wires
# Circuit Design:
# Connect the positive leg of the LED to GPIO pin 15 of the Raspberry Pi Pico.
# Connect the negative leg of the LED to one end of the 220Ω resistor.
# Connect the other end of the resistor to the ground (GND) pin of the Pico.