-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added t-display-s3-touch support
- Loading branch information
Showing
27 changed files
with
532 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"build": { | ||
"arduino": { | ||
"ldscript": "esp32s3_out.ld", | ||
"memory_type": "qio_opi", | ||
"partitions": "default_16MB.csv" | ||
}, | ||
"core": "esp32", | ||
"extra_flags": [ | ||
"-DBOARD_HAS_PSRAM" | ||
], | ||
"f_cpu": "240000000L", | ||
"f_flash": "80000000L", | ||
"flash_mode": "qio", | ||
"hwids": [ | ||
[ | ||
"0X303A", | ||
"0x1001" | ||
] | ||
], | ||
"mcu": "esp32s3", | ||
"variant": "esp32s3" | ||
}, | ||
"connectivity": [ | ||
"wifi", | ||
"bluetooth" | ||
], | ||
"debug": { | ||
"openocd_target": "esp32s3.cfg" | ||
}, | ||
"frameworks": [ | ||
"arduino", | ||
"espidf" | ||
], | ||
"name": "T-DisplayS3", | ||
"upload": { | ||
"flash_size": "16MB", | ||
"maximum_ram_size": 327680, | ||
"maximum_size": 16777216, | ||
"require_upload_port": true, | ||
"speed": 921600 | ||
}, | ||
"url": "https://www.lilygo.cc/products/t-display-s3", | ||
"vendor": "LILYGO" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,7 +154,7 @@ build_src_filter = | |
+<*> | ||
+<../hal/sdl2> | ||
|
||
[env:emulator_tdisplay_s3_touch] | ||
[env:emulator_t_display_s3_touch] | ||
platform = native@^1.1.3 | ||
extra_scripts = support/sdl2_build_extra.py | ||
build_type = release | ||
|
@@ -563,6 +563,97 @@ lib_deps = | |
mikalhart/TinyGPSPlus | ||
h2zero/NimBLE-Arduino @ ^1.3.8 | ||
|
||
[env:t_display_s3_touch] | ||
; overrides the default arduino-esp32 framework with an custom built arduino-esp32 framework | ||
; the custom arduino-esp32 framework provides better power managment, dynamic frquency scaling and 80Mhz Flash/SPIRAM support | ||
; built from https://github.com/Jason2866/esp32-arduino-lib-builder | ||
platform_packages = espressif32;framework-arduinoespressif32 @ https://github.com/sharandac/arduino-esp32-hedge-ng | ||
platform = [email protected] | ||
board = lilygo-t-displays3 | ||
framework = arduino | ||
lib_archive = true | ||
board_build.f_flash = 80000000L | ||
board_build.flash_mode = qio | ||
monitor_speed = 115200 | ||
monitor_filters = | ||
default | ||
esp32_exception_decoder | ||
board_build.partitions = default_16MB.csv | ||
board_build.embed_txtfiles = | ||
src/gui/mainbar/setup_tile/time_settings/timezones.json | ||
src/utils/osm_map/osmtileserver.json | ||
build_type = release | ||
build_flags = | ||
-D BOARD_HAS_PSRAM | ||
-mfix-esp32-psram-cache-issue | ||
-DARDUNIO_NG | ||
-D ESP32_S3 | ||
-DUSER_SETUP_LOADED=1 | ||
-DST7789_DRIVER=1 | ||
; -DINIT_SEQUENCE_3=1 ; Using this initialisation sequence improves the display image | ||
-DCGRAM_OFFSET=1 | ||
-DTFT_RGB_ORDER=TFT_BGR ; Colour order Blue-Green-Red | ||
-DTFT_INVERSION_ON=1 | ||
-DTFT_PARALLEL_8_BIT=1 | ||
-DTFT_WIDTH=170 | ||
-DTFT_HEIGHT=320 | ||
-DTFT_CS=6 | ||
-DTFT_DC=7 | ||
-DTFT_RST=5 | ||
-DTFT_WR=8 | ||
-DTFT_RD=9 | ||
-DTFT_D0=39 | ||
-DTFT_D1=40 | ||
-DTFT_D2=41 | ||
-DTFT_D3=42 | ||
-DTFT_D4=45 | ||
-DTFT_D5=46 | ||
-DTFT_D6=47 | ||
-DTFT_D7=48 | ||
-DTFT_LED=38 | ||
-DTFT_BACKLIGHT_ON=1 | ||
-DSPI_FREQUENCY=80000000 | ||
-DPIN_IIC_SCL=17 | ||
-DPIN_IIC_SDA=18 | ||
-DPIN_TOUCH_INT=16 | ||
-DPIN_TOUCH_RES=21 | ||
-D BAT_ADC=4 | ||
-D T_DISPLAY_S3_TOUCH | ||
; -D LV_LVGL_H_INCLUDE_SIMPLE | ||
-D ARDUINO_USB_CDC_ON_BOOT=1 | ||
-D DISABLE_ALL_LIBRARY_WARNINGS | ||
-D ARDUINO_USB_MODE=1 | ||
|
||
; Choose different options according to different driver chips | ||
; Early use of CST328 | ||
; -D TOUCH_MODULES_CST_MUTUAL | ||
; Use CST816 by default | ||
-D TOUCH_MODULES_CST_SELF | ||
|
||
-D LV_LVGL_H_INCLUDE_SIMPLE=1 | ||
|
||
-D CORE_DEBUG_LEVEL=3 | ||
-D SERIAL_RX_BUFFER_SIZE=256 | ||
-ffunction-sections | ||
-fdata-sections | ||
-Wl,--gc-sections | ||
-Os | ||
build_src_filter = | ||
+<*> | ||
lib_deps = | ||
https://github.com/lvgl/lvgl.git#v7.11.0 | ||
ESP Async WebServer@>=1.2.0 | ||
AsyncTCP@>=1.1.1 | ||
ArduinoJson@>=6.15.2 | ||
luc-github/ESP32SSDP | ||
PubSubClient@>=2.8 | ||
nailbuster/ESP8266FtpServer | ||
https://github.com/tobozo/ESP32-targz/archive/refs/heads/1.0.5-beta.zip | ||
Bodmer/TFT_eSPI | ||
https://github.com/mmMicky/TouchLib.git | ||
mikalhart/TinyGPSPlus | ||
h2zero/NimBLE-Arduino @ ^1.3.8 | ||
|
||
[env:t-watch2020-v1] | ||
; overrides the default arduino-esp32 framework with an custom built arduino-esp32 framework | ||
; the custom arduino-esp32 framework provides better power managment, dynamic frquency scaling and 80Mhz Flash/SPIRAM support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.