diff --git a/10-OBD-Display-2024/display_gif_embedded/src/main.cpp b/10-OBD-Display-2024/display_gif_embedded/src/main.cpp index 6c4be7a..4eccda6 100644 --- a/10-OBD-Display-2024/display_gif_embedded/src/main.cpp +++ b/10-OBD-Display-2024/display_gif_embedded/src/main.cpp @@ -118,6 +118,9 @@ void setup() { lv_obj_set_style_bg_color(screen, lv_color_black(), 0); // 0 is the part ID for the main part lv_obj_set_style_bg_opa(screen, LV_OPA_COVER, 0); // Set opacity to fully opaque + // GIF is compiled into the firmware, so start it before (and independent of) the SD card + display_animation(); + // Configure the SDMMC host SD_MMC.setPins(SD_MMC_CLK_PIN, SD_MMC_CMD_PIN, SD_MMC_D0_PIN, SD_MMC_D1_PIN, SD_MMC_D2_PIN, SD_MMC_D3_PIN); @@ -134,8 +137,6 @@ void setup() { Serial.println("SD Card initialized successfully."); - display_animation(); - //connectToWifi(); //display_text();