mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
set max for x/y coordinates
This commit is contained in:
parent
b33d398fd1
commit
e16831df58
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue