From e207c9a5b734f896e656d8c7ee99ceaefcceb4b2 Mon Sep 17 00:00:00 2001 From: drjones Date: Tue, 30 Jun 2026 02:27:07 -0700 Subject: [PATCH] Optimize boot order: initialize display and NeoPixel first --- sound_picture_app/sound_picture_app.ino | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sound_picture_app/sound_picture_app.ino b/sound_picture_app/sound_picture_app.ino index 7314f2f..276069d 100644 --- a/sound_picture_app/sound_picture_app.ino +++ b/sound_picture_app/sound_picture_app.ino @@ -50,14 +50,16 @@ void setup() { // Setup NeoPixel pinMode(PIN_NEOPIXEL, OUTPUT); - neopixelWrite(PIN_NEOPIXEL, 0, 0, 0); // turn off initially + neopixelWrite(PIN_NEOPIXEL, 0, 0, 32); // Turn on solid blue to show booting - // Initialize peripherals - Flash_test(); - SD_Init(); + // Initialize Display and Backlight first so the screen lights up immediately LCD_Init(); Set_Backlight(90); + // Initialize other peripherals + Flash_test(); + SD_Init(); + // Setup button pinMode(BOOT_KEY_PIN, INPUT_PULLUP);