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);