#define BUTTON_PIN 12
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(BUTTON_PIN,INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(digitalRead(BUTTON_PIN));
delay(500); // this speeds up the simulation
}