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:
Edward Firmo
2024-02-22 23:19:34 +01:00
parent dc12a64724
commit 01005b5863
17 changed files with 939 additions and 472 deletions

View File

@@ -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