display_gif_embedded: start GIF before SD init so a failing card doesn't block it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3669f41eb4
commit
4e63fb65c6
1 file changed
+3
-2
@@ -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_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
|
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
|
// 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);
|
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.");
|
Serial.println("SD Card initialized successfully.");
|
||||||
|
|
||||||
display_animation();
|
|
||||||
|
|
||||||
//connectToWifi();
|
//connectToWifi();
|
||||||
|
|
||||||
//display_text();
|
//display_text();
|
||||||
|
|||||||
Reference in new issue
Block a user