-
Hello, I am using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
assuming your lgfx object is named {
auto _panel_instance = tft.getPanel();
auto _bus_instance = (lgfx::Bus_SPI*)_panel_instance->getBus();
auto _bus_cfg = _bus_instance->config();
_bus_cfg.freq_write = 80000000;
_bus_instance->config(_bus_cfg);
_panel_instance->setBus( _bus_instance );
} |
Beta Was this translation helpful? Give feedback.
-
sorry I forgot the panel/bus settings are eventually overwritten by autodetect 🤦 maybe try this after {
tft.releaseBus();
auto _panel_instance = tft.getPanel();
auto _bus_instance = (lgfx::Bus_SPI*)_panel_instance->getBus();
auto _bus_cfg = _bus_instance->config();
_bus_cfg.freq_write = 80000000;
_bus_instance->config(_bus_cfg);
_panel_instance->setBus( _bus_instance );
// tft.setPanel(_panel_instance); // unsure about that one
tft.initBus();
} |
Beta Was this translation helpful? Give feedback.
-
The ESP32 SPI can only choose 80 MHz divided by an integer. |
Beta Was this translation helpful? Give feedback.
The ESP32 SPI can only choose 80 MHz divided by an integer.
The M5Stack LCD does not have a proven track record of stable operation at 80 MHz.
Therefore, a setting of 40 MHz is the optimal value.