#define LedPin 10
int buttonPin = 7;

void setup() {
  // put your setup code here, to run once:
  pinMode(LedPin, OUTPUT);
  pinMode(buttonPin, INPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  if (digitalRead(buttonPin))
    digitalWrite(LedPin, LOW);
  else
    digitalWrite(LedPin, HIGH);

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