mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-19 09:16:41 +00:00
feat: add guition-jc8048w550n.ini setup
This commit is contained in:
parent
71cefbee82
commit
0cc3300756
97
user_setups/esp32s3/guition-jc8048w550n.ini
Normal file
97
user_setups/esp32s3/guition-jc8048w550n.ini
Normal file
@ -0,0 +1,97 @@
|
||||
;***************************************************;
|
||||
; Sunton ESP32-S3 TFT 4.3", 5.0", 7.0" ;
|
||||
; - Custom esp32-s3 board ;
|
||||
; - ili6485 480x272 or st7262 IPS 800x480 ;
|
||||
; - xpt2046 or gt911 touch controller ;
|
||||
;***************************************************;
|
||||
|
||||
[guition-jc8048w550n-tft]
|
||||
extends = arduino_esp32s3_v2
|
||||
board = esp32-s3-devkitc-1
|
||||
board_build.arduino.memory_type = qio_opi
|
||||
|
||||
build_flags =
|
||||
${arduino_esp32s3_v2.build_flags}
|
||||
${esp32s3.ps_ram}
|
||||
; -D HASP_MODEL="Sunton 4.3\""
|
||||
;-DARDUINO_USB_CDC_ON_BOOT
|
||||
;-DUSE_USB_CDC_CONSOLE
|
||||
|
||||
;region -- ArduinoGFX build options ------------------------
|
||||
-D HASP_USE_ARDUINOGFX=1
|
||||
-D HASP_LV_USE_SW_ROTATE=1
|
||||
-D TFT_BCKL=2
|
||||
-D BACKLIGHT_FREQUENCY=100
|
||||
;endregion
|
||||
|
||||
lib_deps =
|
||||
${arduino_esp32s3_v2.lib_deps}
|
||||
${arduinogfx.lib_deps}
|
||||
Arduino_RPi_DPI_RGBPanel_mod
|
||||
${goodix.lib_deps}
|
||||
|
||||
|
||||
[guition-jc8048w550n-tft-common-pins]
|
||||
build_flags =
|
||||
; Bus Settings
|
||||
-D TFT_DE=40
|
||||
-D TFT_VSYNC=41
|
||||
-D TFT_HSYNC=39
|
||||
-D TFT_PCLK=42
|
||||
-D TFT_R0=8
|
||||
-D TFT_R1=3
|
||||
-D TFT_R2=46
|
||||
-D TFT_R3=9
|
||||
-D TFT_R4=1
|
||||
-D TFT_G0=5
|
||||
-D TFT_G1=6
|
||||
-D TFT_G2=7
|
||||
-D TFT_G3=15
|
||||
-D TFT_G4=16
|
||||
-D TFT_G5=4
|
||||
-D TFT_B0=45
|
||||
-D TFT_B1=48
|
||||
-D TFT_B2=47
|
||||
-D TFT_B3=21
|
||||
-D TFT_B4=14
|
||||
|
||||
[env:guition-jc8048w50n_16MB]
|
||||
extends = guition-jc8048w550n-tft, flash_16mb
|
||||
|
||||
build_flags =
|
||||
-D HASP_MODEL="Guition ESP32-8048W550N"
|
||||
${guition-jc8048w550n-tft.build_flags}
|
||||
${guition-jc8048w550n-tft-common-pins.build_flags}
|
||||
; Bus Settings
|
||||
-D LV_VDB_SIZE=76800 ; 10% of full framebuffer
|
||||
-D TFT_WIDTH=800
|
||||
-D TFT_HEIGHT=480
|
||||
; Panel Settings
|
||||
; see https://github.com/rzeldent/platformio-espressif32-sunton/blob/ff4ef01c23cdb6ffe1e0033c2c62fd76a8a1b0c0/JC8048W550.json
|
||||
-D TFT_HSYNC_POLARITY=0
|
||||
-D TFT_HSYNC_FRONT_PORCH=8 ; Maximum HSYNC Front Porch
|
||||
-D TFT_HSYNC_PULSE_WIDTH=4 ; Typical HSYNC Pulse Width
|
||||
-D TFT_HSYNC_BACK_PORCH=8 ; Typical HSYNC Back Porch
|
||||
-D TFT_VSYNC_POLARITY=0
|
||||
-D TFT_VSYNC_FRONT_PORCH=8 ; Maximum VSYNC Front Porch
|
||||
-D TFT_VSYNC_PULSE_WIDTH=4 ; Typical VSYNC Pulse Width
|
||||
-D TFT_VSYNC_BACK_PORCH=8 ; Typical VSYNC Back Porch
|
||||
-D TFT_PCLK_ACTIVE_NEG=1
|
||||
; 13900000 fails on some boards, high values cause wifi issues
|
||||
-D TFT_PREFER_SPEED=16000000 ; 1/2 of Typical DCLK Frequency
|
||||
-D TFT_AUTO_FLUSH=1
|
||||
; Touch Settings
|
||||
-D TOUCH_WIDTH=800
|
||||
-D TOUCH_HEIGHT=480
|
||||
-D TOUCH_DRIVER=0x911
|
||||
-D TOUCH_SCL=20
|
||||
-D TOUCH_SDA=19
|
||||
-D TOUCH_IRQ=-1
|
||||
-D TOUCH_RST=38
|
||||
-D I2C_TOUCH_ADDRESS=0x5D
|
||||
-D I2C_TOUCH_FREQUENCY=400000
|
||||
lib_deps =
|
||||
${guition-jc8048w550n-tft.lib_deps}
|
||||
${goodix.lib_deps}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user