Add framework info to TFT
This commit is contained in:
@@ -74,7 +74,7 @@ script:
|
||||
for (int i = 0; i < (seconds*4); i++) {
|
||||
#ifdef ARDUINO
|
||||
delay(250);
|
||||
#elif defined(ESP_PLATFORM)
|
||||
#elif defined(USE_ESP_IDF)
|
||||
vTaskDelay(pdMS_TO_TICKS(250));
|
||||
#endif
|
||||
App.feed_wdt();
|
||||
@@ -205,7 +205,7 @@ script:
|
||||
//send_nextion_command("rest");
|
||||
#ifdef ARDUINO
|
||||
delay(1500);
|
||||
#elif defined(ESP_PLATFORM)
|
||||
#elif defined(USE_ESP_IDF)
|
||||
//vTaskDelay(pdMS_TO_TICKS(1500));
|
||||
#endif
|
||||
|
||||
@@ -480,7 +480,7 @@ script:
|
||||
|
||||
return upload_end_(true);
|
||||
};
|
||||
#elif defined(ESP_PLATFORM) // esp-idf # To do: Move to Nextion component on ESPHome
|
||||
#elif defined(USE_ESP_IDF) // esp-idf # To do: Move to Nextion component on ESPHome
|
||||
auto upload_range_esp_idf_ = [&](const std::string &url, int range_start) -> int {
|
||||
static const char *const TAG = "script.upload_tft.upload_range_esp_idf_";
|
||||
ESP_LOGVV(TAG, "url: %s", url.c_str());
|
||||
@@ -727,14 +727,14 @@ script:
|
||||
id(screen_power).turn_off();
|
||||
#ifdef ARDUINO
|
||||
delay(1500);
|
||||
#elif defined(ESP_PLATFORM)
|
||||
#elif defined(USE_ESP_IDF)
|
||||
vTaskDelay(pdMS_TO_TICKS(1500));
|
||||
#endif
|
||||
ESP_LOGD(TAG, "Turn on Nextion");
|
||||
id(screen_power).turn_on();
|
||||
#ifdef ARDUINO
|
||||
delay(1500);
|
||||
#elif defined(ESP_PLATFORM)
|
||||
#elif defined(USE_ESP_IDF)
|
||||
vTaskDelay(pdMS_TO_TICKS(1500));
|
||||
#endif
|
||||
}
|
||||
@@ -753,7 +753,7 @@ script:
|
||||
id(screen_power).turn_off();
|
||||
#ifdef ARDUINO
|
||||
delay(1500);
|
||||
#elif defined(ESP_PLATFORM)
|
||||
#elif defined(USE_ESP_IDF)
|
||||
vTaskDelay(pdMS_TO_TICKS(1500));
|
||||
#endif
|
||||
ESP_LOGD(TAG, "Turn on Nextion");
|
||||
@@ -761,7 +761,7 @@ script:
|
||||
ESP_LOGD(TAG, "Restarting esphome");
|
||||
#ifdef ARDUINO
|
||||
delay(1500);
|
||||
#elif defined(ESP_PLATFORM)
|
||||
#elif defined(USE_ESP_IDF)
|
||||
vTaskDelay(pdMS_TO_TICKS(1500));
|
||||
#endif
|
||||
id(restart_nspanel).press();
|
||||
|
||||
Reference in New Issue
Block a user