Skip to content

Commit

Permalink
added config_detail
Browse files Browse the repository at this point in the history
  • Loading branch information
mverch67 committed Jul 31, 2024
1 parent 5e742c8 commit 9f182c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/graphics/TFTDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,15 @@ class LGFX : public lgfx::LGFX_Device
_panel_instance.config(cfg);
}

{
auto cfg = _panel_instance.config_detail();
cfg.pin_cs = ST7701_CS;
cfg.pin_sclk = ST7701_SCK;
cfg.pin_mosi = ST7701_SDA;
// cfg.use_psram = 1;
_panel_instance.config_detail(cfg);
}

{
auto cfg = _bus_instance.config();
cfg.panel = &_panel_instance;
Expand Down

0 comments on commit 9f182c3

Please sign in to comment.