Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WT32-SC01 wrong configuration for TFT #387

Open
2 of 7 tasks
Nanich87 opened this issue Feb 5, 2023 · 1 comment
Open
2 of 7 tasks

WT32-SC01 wrong configuration for TFT #387

Nanich87 opened this issue Feb 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Nanich87
Copy link

Nanich87 commented Feb 5, 2023

Build tool used:

  • Platformio (Visual Studio Code plugin)
  • Platformio CLI
  • Other

used Hardware:

  • TWatch 2020 or TWatch 2021
  • M5Paper
  • M5Core2
  • WT32-SC01

Description of problem:

WT32-SC01 has wrong configuration for TFT SPI in platformio.ini

Additional information and things you've tried:
My board is v3.2
The correct settings can be found here https://github.com/HASwitchPlate/openHASP/blob/master/user_setups/esp32/wt32-sc01.ini

@Nanich87 Nanich87 added the bug Something isn't working label Feb 5, 2023
@Nanich87
Copy link
Author

This is the working configuration that I use.

[env:WT32-SC01_v3_2]
; 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 = framework-arduinoespressif32 @ https://github.com/sharandac/arduino-esp32-hedge-ng
platform = espressif32@4.4.0
board = esp32dev
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 = twatch2021_4MB.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
    -DUSER_SETUP_LOADED=1
    -DST7796_DRIVER=1
    -DTFT_WIDTH=480
    -DTFT_HEIGHT=320
    -DTFT_ROTATION=0
    -DPIN_SDA=18
    -DPIN_SCL=19
    -DTFT_MISO=-1
    -DTFT_MOSI=13
    -DTFT_SCLK=14
    -DTFT_CS=15
    -DTFT_DC=21
    -DTFT_RST=22
    -DTFT_LED=23
    -DSPI_FREQUENCY=40000000
    -D WT32_SC01
    -D LV_LVGL_H_INCLUDE_SIMPLE
	  -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
    https://github.com/mobizt/ESP-Mail-Client.git#v2.4.8
    Bodmer/TFT_eSPI
    https://github.com/adafruit/Adafruit_FT6206_Library
    mikalhart/TinyGPSPlus
    h2zero/NimBLE-Arduino @ ^1.3.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant