byte buttonPin=12;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(buttonPin, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
int buttonState = digitalRead(buttonPin);
Serial.print("buttonState:");
Serial.println(buttonState);
delay(1000); // this speeds up the simulation
}