#include <Arduino.h>


const int ledPin = 3;      
const int buttonPin = 16;  

void setup() {
  Serial.begin(9600);
  pinMode(ledPin, OUTPUT);    
  pinMode(buttonPin, INPUT);   
  Serial.println("LED with button");
}

void loop() {
  int buttonState = digitalRead(buttonPin); 

  if (buttonState == HIGH) {  
    digitalWrite(ledPin, HIGH);  
  } else { 
    digitalWrite(ledPin, LOW);   
  }

  delay(100); 
}
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT