int input_Data[] = {5};
void setup() {
for (int i = 0; i < 5; i++){
REG_WRITE(GPIO_ENABLE_W1TS_REG, (1 << input_Data[i]));
}
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void Value_DigitalRead(){
int Value_Botton_Power = 0;
while(true){
Value_Botton_Power = (REG_READ(GPIO_IN_REG) >> input_Data[0]) & 0x01;
Serial.print(Value_Botton_Power);
}
}
void loop() {
Value_DigitalRead();
}