[gt911] Fix gt911 touchscreen with reset pin not initializing when loglevel is set to NONE (#11715)

This commit is contained in:
Javier Peletier
2025-11-04 19:38:59 +01:00
committed by GitHub
parent 968df6cb3f
commit 191a88c2dc

View File

@@ -34,8 +34,8 @@ void GT911Touchscreen::setup() {
this->interrupt_pin_->digital_write(false);
}
delay(2);
this->reset_pin_->digital_write(true); // wait 50ms after reset
this->set_timeout(50, [this] { this->setup_internal_(); });
this->reset_pin_->digital_write(true); // wait at least T3+T4 ms as per the datasheet
this->set_timeout(5 + 50 + 1, [this] { this->setup_internal_(); });
return;
}
this->setup_internal_();