support rotated ILI9341 (ILI9342) (#3526)

Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
Samuel Sieb
2022-06-07 03:42:13 -07:00
committed by GitHub
parent 612822490b
commit dd470d4197
3 changed files with 20 additions and 0 deletions
@@ -263,5 +263,13 @@ void ILI9341TFT24::initialize() {
this->fill_internal_(Color::BLACK);
}
// 24_TFT rotated display
void ILI9341TFT24R::initialize() {
this->init_lcd_(INITCMD_TFT);
this->width_ = 320;
this->height_ = 240;
this->fill_internal_(Color::BLACK);
}
} // namespace ili9341
} // namespace esphome