const int buttonPin = 2;
void setup() {
// put your setup code here, to run once:
pinMode(buttonPin, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_BUILTIN, digitalRead(buttonPin));
}
const int buttonPin = 2;
void setup() {
// put your setup code here, to run once:
pinMode(buttonPin, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_BUILTIN, digitalRead(buttonPin));
}