#include <Arduino.h>
const int outPinR1 = 16;
const int inPinT1 = 2;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(outPinR1, OUTPUT);
digitalWrite(outPinR1, HIGH);
pinMode(inPinT1, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int t1 = digitalRead(inPinT1);
Serial.print(t1);
Serial.println();
delay(10); // this speeds up the simulation
}