void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
if (button1 == HIGH && button2 == LOW && clawServo >= 95){
clawServo--;
timeout = true;
loopCount = 0;
}else if(button2 == LOW && button2 == HIGH && clawServo <= 175){
clawServo++;
timeout = true;
loopCount = 0;
}
if (timeout == true && loopCount >= 100){
detach.clawServo;
timeout = false;
loopCount = 0
}
}