Merge pull request #39 from blakadder/master

add WT32-SC01 gpio's
This commit is contained in:
fvanroie 2021-01-06 01:27:50 +01:00 committed by GitHub
commit 7b08dcd600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 6 deletions

View File

@ -27,6 +27,8 @@ extra_default_envs =
; d132-unoshield
; nodemcu32s-raspi
; esp32dev-ili9488
; lanbon_l8
; wt32-sc01
; my_custom_build
;endregion

View File

@ -0,0 +1,54 @@
;***************************************************;
; Lanbon L8 Switch with ST7789V TFT 2.4" ;
; - Custom ESP32 pcb ;
; - ST7789V TFT ;
; - FT6336U touch controller ;
;***************************************************;
[env:wt32-sc01]
platform = espressif32
platform_packages = framework-arduinoespressif32
framework = arduino
board = esp32dev
;upload_port = COM5 ; To change the port, use platform_override.ini
;monitor_port = COM5 ; To change the port, use platform_override.ini
monitor_filters = esp32_exception_decoder
board_build.partitions = user_setups/esp32_partition_app1300k_spiffs1216k.csv
build_flags =
${env.build_flags}
${esp32.build_flags}
;region -- TFT_eSPI build options ------------------------
${lcd.wt32-sc01}
-D TFT_RST=22
-D TFT_SCLK=14
-D TFT_DC=21
-D TFT_CS=15
-D TFT_MOSI=13
-D TFT_MISO=-1
-D TFT_BCKL=23
; -D TOUCH_DRIVER=5206
; -D TOUCH_SDA=30 // correct port, commented because touch crashes
; -D TOUCH_SCL=31 // correct port, commented because touch crashes
; -D TOUCH_IRQ=-1 ; not connected
; -D TOUCH_RST=-1 ; not used, connected to 3.3V on FCP pin10
; -D TOUCH_FREQUENCY=400000
; -D USE_TFT_ESPI=1
;endregion
;region -- Library options -------------------------------
lib_deps =
${env.lib_deps}
${esp32.lib_deps}
;git+https://github.com/lvgl/lvgl_esp32_drivers.git
git+https://github.com/aselectroworks/Arduino-FT6336U.git
lib_ignore =
${env.lib_ignore}
${esp32.lib_ignore}
;endregion
extra_scripts =
${env.extra_scripts}
${esp32.extra_scripts}

View File

@ -67,14 +67,11 @@ st7789v =
;-D TOUCH_DRIVER=6336 ; FT6336U Capacitive I2C touch panel driver
-D SUPPORT_TRANSACTIONS
wireless-tag =
wt32-sc01 =
-D ST7796_DRIVER=1
-D TFT_WIDTH=320
-D TFT_HEIGHT=480
-D TFT_ROTATION=0 ; see TFT_ROTATION values
-D TFT_ROTATION=1 ; see TFT_ROTATION values
-D SPI_FREQUENCY=40000000
-D SPI_READ_FREQUENCY=20000000
-D USER_SETUP_LOADED=1
-D TOUCH_DRIVER=6336 ; FT6336U Capacitive I2C touch panel driver
-D SUPPORT_TRANSACTIONS
-D I2C_TOUCH_FREQUENCY=400000
-D SUPPORT_TRANSACTIONS