From 68fb7d4b7c687d93b486de67336d4080725b4733 Mon Sep 17 00:00:00 2001 From: Sebastian Nieto Date: Wed, 9 Sep 2026 22:06:05 -0300 Subject: [PATCH] fix: remove splash image delay and logo bitmap during boot and Bluetooth connection --- sketch/obd2_gauge/obd2_gauge.ino | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sketch/obd2_gauge/obd2_gauge.ino b/sketch/obd2_gauge/obd2_gauge.ino index 14b3d29..c010d9a 100644 --- a/sketch/obd2_gauge/obd2_gauge.ino +++ b/sketch/obd2_gauge/obd2_gauge.ino @@ -244,11 +244,10 @@ void setup() { touch_calibrate(); // initialize / load touch calibration //testTouch();//test touchscreen - tft.setSwapBytes(true); //to display correct image color + // Eliminar cualquier imagen splash de inicio/bluetooth de SPIFFS if (SPIFFS.begin(true)) { if (SPIFFS.exists("/vaandcob.jpg")) { - show_spiffs_jpeg_image("/vaandcob.jpg", 0, 0); - delay(1500); + SPIFFS.remove("/vaandcob.jpg"); } SPIFFS.end(); } @@ -261,9 +260,9 @@ void setup() { } digitalWrite(LED_RED_PIN, HIGH); //red off tft.fillScreen(TFT_BLACK); //show start page - tft.fillRectVGradient(0, 0, 320, 26, TFT_YELLOW, 0x8400); - tft.setTextColor(TFT_BLACK); - tft.pushImage(0, 0, 320, 25, obd2gauge); //show logo + tft.fillRectVGradient(0, 0, 320, 26, 0x2104, TFT_BLACK); + tft.setTextColor(TFT_WHITE); + tft.drawString("OBDII GAUGE", 10, 5, 2); ledcWrite(backlightChannel, 255); //full bright tft.setTextColor(TFT_WHITE, TFT_RED); tft.drawRightString(" Config button ->", 319, 26, 2);