Skip to content

Commit

Permalink
tweak for Sunton_2432S028 (ST7789 version)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed Feb 20, 2024
1 parent 0628459 commit cbd9024
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/lgfx/v1_autodetect/LGFX_AutoDetect_ESP32_all.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3112,8 +3112,20 @@ namespace lgfx
{
ESP_LOGI(LIBRARY_NAME, "[Autodetect] Sunton_2432S028 (ST7789)");

result->panel = new Panel_ST7789();
auto p = new Panel_ST7789();
{
auto cfg = p->config();
cfg.offset_rotation = 2;
p->config(cfg);
}
result->panel = p;
_detector_Sunton_ESP32_2432S028_t::setup(result);
auto t = result->panel->getTouch();
{
auto cfg = t->config();
cfg.offset_rotation = 2;
t->config(cfg);
}
}
};

Expand Down

0 comments on commit cbd9024

Please sign in to comment.