#-------------------------------------------------------------
# LAB Name: Raspberry Pi Pico - MicroPython (Project Template)
# Author: Khaled Magdy
# For More Info Visit: www.DeepBlueMbedded.com
#-------------------------------------------------------------
from machine import Pin
from time import sleep
from neopixel import NeoPixel
BUTTON_PIN = Pin("GP6", Pin.IN)
BUILTIN_LED = Pin("LED", Pin.OUT)
while True:
if (BUTTON_PIN.value() === 1) {
print('Button pressed!')
BUILTIN_LED.value(1)
}
sleep(1)