fix: remove splash image delay and logo bitmap during boot and Bluetooth connection
This commit is contained in:
parent
dcbf9292a7
commit
68fb7d4b7c
1 changed files with 5 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue