mirror of
https://github.com/Xinyuan-LilyGO/T-Display-S3.git
synced 2024-09-21 09:57:26 +00:00
Modified some useless configurations of tft.
This commit is contained in:
parent
1140b111cb
commit
5496783f56
6419
example/tft/cai.h
6419
example/tft/cai.h
File diff suppressed because it is too large
Load Diff
13602
example/tft/img_logo.h
13602
example/tft/img_logo.h
File diff suppressed because it is too large
Load Diff
@ -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
|
@ -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);
|
||||
;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user