const int buttonPin = 2;
void setup() {
pinMode(buttonPin, INPUT);
Serial.begin(115200);
}
void loop() {
digitalWrite(LED_BUILTIN, digitalRead(buttonPin));
}
const int buttonPin = 2;
void setup() {
pinMode(buttonPin, INPUT);
Serial.begin(115200);
}
void loop() {
digitalWrite(LED_BUILTIN, digitalRead(buttonPin));
}