# ==================================================
"""
Project objective: Blink four external LEDs connected to the Raspberry Pi Pico
Hardware and connections used:
Anode of four LEDs to GPIO pins 6-9 of Raspberry Pi Pico
220 ohm resistor connected in series to each LED
Author: Adrian Josele G. Quional
"""
# ==================================================
from machine import Pin
import utime
led = Pin(15,Pin.OUT)
boton = Pin(16, Pin.IN,Pin.PULL_DOWN)
while True:
if boton.value() == 0:
led.off()
else :
led.on()