mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Update config for WT32-SC01, Lanbon L8 and M5Stack
This commit is contained in:
parent
7b08dcd600
commit
316b406c05
@ -2,7 +2,7 @@
|
|||||||
; Lanbon L8 Switch with ST7789V TFT 2.4" ;
|
; Lanbon L8 Switch with ST7789V TFT 2.4" ;
|
||||||
; - Custom ESP32 pcb ;
|
; - Custom ESP32 pcb ;
|
||||||
; - ST7789V TFT ;
|
; - ST7789V TFT ;
|
||||||
; - FT6336U touch controller ;
|
; - FT5206 touch controller ;
|
||||||
;***************************************************;
|
;***************************************************;
|
||||||
|
|
||||||
[env:lanbon_l8]
|
[env:lanbon_l8]
|
||||||
|
53
user_setups/esp32/m5stack_core2.ini
Normal file
53
user_setups/esp32/m5stack_core2.ini
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
;***************************************************;
|
||||||
|
; M5Stack Core2 with integrated touch display ;
|
||||||
|
; - Custom ESP32 pcb ;
|
||||||
|
; - ILI9342C TFT ;
|
||||||
|
; - FT6336U touch controller ;
|
||||||
|
;***************************************************;
|
||||||
|
|
||||||
|
[env:m5stack-core2]
|
||||||
|
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.m5stack}
|
||||||
|
-D TFT_RST=-1 ; Managed by AXP_IO4
|
||||||
|
-D TFT_SCLK=18
|
||||||
|
-D TFT_DC=15
|
||||||
|
-D TFT_CS=5
|
||||||
|
-D TFT_MOSI=23
|
||||||
|
-D TFT_MISO=38
|
||||||
|
-D TFT_BCKL=-1 ; Managed by AXP_DC3 & AXP_LDO2
|
||||||
|
-D TOUCH_DRIVER=6336
|
||||||
|
-D TOUCH_SDA=21
|
||||||
|
-D TOUCH_SCL=22
|
||||||
|
-D TOUCH_IRQ=39
|
||||||
|
-D TOUCH_RST=-1 ; Managed by AXP_IO4
|
||||||
|
-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/aselectroworks/Arduino-FT6336U.git
|
||||||
|
|
||||||
|
lib_ignore =
|
||||||
|
${env.lib_ignore}
|
||||||
|
${esp32.lib_ignore}
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
extra_scripts =
|
||||||
|
${env.extra_scripts}
|
||||||
|
${esp32.extra_scripts}
|
@ -1,5 +1,5 @@
|
|||||||
;***************************************************;
|
;***************************************************;
|
||||||
; Lanbon L8 Switch with ST7789V TFT 2.4" ;
|
; Wireless-Tag WT32-SC01 dev board & display ;
|
||||||
; - Custom ESP32 pcb ;
|
; - Custom ESP32 pcb ;
|
||||||
; - ST7789V TFT ;
|
; - ST7789V TFT ;
|
||||||
; - FT6336U touch controller ;
|
; - FT6336U touch controller ;
|
||||||
|
@ -27,6 +27,18 @@ lolin24 =
|
|||||||
-D TOUCH_DRIVER=2046 ; XPT2046 Resistive SPI touch panel driver
|
-D TOUCH_DRIVER=2046 ; XPT2046 Resistive SPI touch panel driver
|
||||||
-D SUPPORT_TRANSACTIONS
|
-D SUPPORT_TRANSACTIONS
|
||||||
|
|
||||||
|
m5stack =
|
||||||
|
-D M5STACK ; For AXP192 and TFT_eSPI
|
||||||
|
-D ILI9341_DRIVER=1
|
||||||
|
-D TFT_INVERSION_ON ; for inverted colors
|
||||||
|
-D TFT_WIDTH=240
|
||||||
|
-D TFT_HEIGHT=320
|
||||||
|
-D TFT_ROTATION=0 ; see TFT_ROTATION values
|
||||||
|
-D SPI_FREQUENCY=80000000
|
||||||
|
-D SPI_READ_FREQUENCY=16000000
|
||||||
|
-D USER_SETUP_LOADED=1
|
||||||
|
-D SUPPORT_TRANSACTIONS
|
||||||
|
|
||||||
raspberrypi =
|
raspberrypi =
|
||||||
-D RPI_DISPLAY_TYPE=1
|
-D RPI_DISPLAY_TYPE=1
|
||||||
-D ST7796_DRIVER=1
|
-D ST7796_DRIVER=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user