Memory optimization & external components
Helps with #1686 - This is deprecating Relay local fallback switches (replaced by globals) to save memory. - Using reboot timeout from ESPHome instead of custom engine - Do not change page is already there. - Use of external components to streamline some repetitive code - API always transfer colors in RGB array to keep consistency
This commit is contained in:
@@ -138,8 +138,11 @@ script:
|
||||
disp1->hide_component("bt_accept");
|
||||
disp1->hide_component("bt_clear");
|
||||
}
|
||||
disp1->set_component_text_printf("confirm.title", "Upload TFT\\r%s",
|
||||
id(framework) == 1 ? "Arduino" : (id(framework) == 2 ? "ESP-IDF" : "Unknown"));
|
||||
#ifdef ARDUINO
|
||||
disp1->set_component_text_printf("confirm.title", "Upload TFT\\rArduino");
|
||||
#elif defined(USE_ESP_IDF)
|
||||
disp1->set_component_text_printf("confirm.title", "Upload TFT\\rESP-IDF");
|
||||
#endif
|
||||
page_id->update();
|
||||
|
||||
- id: report_settings
|
||||
|
||||
Reference in New Issue
Block a user