Modified some useless configurations of tft.

This commit is contained in:
Micky 2022-11-22 10:07:38 +08:00
parent 1140b111cb
commit 5496783f56
4 changed files with 6807 additions and 13234 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -19,18 +19,12 @@ board = esp32-s3-devkitc-1
framework = arduino
platform_packages =
framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3
; upload_port = COM29
framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.5
build_flags =
-DLV_LVGL_H_INCLUDE_SIMPLE
; -DBOARD_HAS_PSRAM
; -mfix-esp32-psram-cache-issue
; -mfix-esp32-psram-cache-strategy=memw
-DBOARD_HAS_PSRAM
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
board.psram_type = opi
board.code_debug = 5
board.memory_type=qspi_opi
board_build.arduino.memory_type = qio_opi

View File

@ -1,6 +1,5 @@
#include "Arduino.h"
#include "TFT_eSPI.h" /* Please use the TFT library provided in the library. */
#include "cai.h"
#include "img_logo.h"
#include "pin_config.h"
@ -18,11 +17,11 @@ void setup() {
tft.begin();
tft.setRotation(3);
tft.setSwapBytes(true);
tft.pushImage(0, 0, 302, 170, (uint16_t *)gImage_cai);
tft.pushImage(0, 0, 320, 170, (uint16_t *)img_logo);
delay(2000);
ledcSetup(0, 2000, 8);
ledcAttachPin(TFT_BL, 0);
ledcSetup(0, 2000, 8);
ledcAttachPin(TFT_BL, 0);
ledcWrite(0, 255);
}
@ -180,5 +179,4 @@ void loop() {
tft.drawNumber(millis() - targetTime, 0, 100, 4);
delay(4000);
;
}