set max for x/y coordinates

This commit is contained in:
SGE 2024-04-01 21:24:40 +02:00
parent b33d398fd1
commit e16831df58

View file

@ -23,6 +23,10 @@ void ICNT86Touchscreen::setup() {
this->reset_pin_->setup(); this->reset_pin_->setup();
this->reset_(); this->reset_();
} }
this->x_raw_max_ = this->display_->get_native_width();
this->y_raw_max_ = this->display_->get_native_height();
this->conversion_to_resolution_ = false; this->conversion_to_resolution_ = false;
// Trigger initial read to activate the interrupt // Trigger initial read to activate the interrupt
this->store_.touched = true; this->store_.touched = true;