What do you want to achieve?
I want to Integrate Square Line Files (TFT_eSPI) for ESP32-S3 4.3inch Capacitive
Touch Display
Development Board LVGL demos and examples run on ESP_Display_Panel library which
supports
ST7262 Driver for the screen but the files Exported from Squre Line is under TFT eSPI which
doesn't have a ST7262 Driver
What have you tried so far?
Honestly nothing that works to my knowledge I do not have much experience with this development board and how to integrate drivers for it to work on TFT. I tried everything I could read up on and learn over the past few days
Screenshot or video
This is the folders I require for the display and the work 100% the ESP-Panel Confi and lvgl file runs my setup and drives which include the serial bus st7262 ect.
Others
- **SquareLine Studio version:**It wont run on any other version than 8.3.6/8.3.8
This is the Panel_Config File
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ESP_PANEL_CONF_H
#define ESP_PANEL_CONF_H
// *INDENT-OFF*
/* Set to 0 if use a custom board */
#define ESP_PANEL_USE_SUPPORTED_BOARD (0)
#if ESP_PANEL_USE_SUPPORTED_BOARD
/*
* Supported Boards.
* - ESP32-C3-LCDkit: https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32c3/esp32-c3-lcdkit/index.html
* - ESP32-S3-Box: https://github.com/espressif/esp-box/tree/master
* - ESP32-S3-Box-3: https://github.com/espressif/esp-box/tree/master
* - ESP32-S3-Box-3(beta): https://github.com/espressif/esp-box/tree/c4c954888e11250423f083df0067d99e22d59fbe
* - ESP32-S3-Box-Lite: https://github.com/espressif/esp-box/tree/master
* - ESP32-S3-EYE: https://github.com/espressif/esp-who/blob/master/docs/en/get-started/ESP32-S3-EYE_Getting_Started_Guide.md
* - ESP32-S3-Korvo-2: https://docs.espressif.com/projects/esp-adf/en/latest/design-guide/dev-boards/user-guide-esp32-s3-korvo-2.html
* - ESP32-S3-LCD-EV-Board: https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s3/esp32-s3-lcd-ev-board/index.html
* - ESP32-S3-LCD-EV-Board-2: https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s3/esp32-s3-lcd-ev-board/index.html
* - ESP32-S3-USB-OTG: https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s3/esp32-s3-usb-otg/index.html
*
* Uncomment one of the following macros to select an supported development board.
*/
// #define ESP_PANEL_BOARD_ESP32_C3_LCDKIT
// #define ESP_PANEL_BOARD_ESP32_S3_BOX
// #define ESP_PANEL_BOARD_ESP32_S3_BOX_3
// #define ESP_PANEL_BOARD_ESP32_S3_BOX_3_BETA
// #define ESP_PANEL_BOARD_ESP32_S3_BOX_LITE
// #define ESP_PANEL_BOARD_ESP32_S3_EYE
// #define ESP_PANEL_BOARD_ESP32_S3_KORVO_2
// #define ESP_PANEL_BOARD_ESP32_S3_LCD_EV_BOARD
// #define ESP_PANEL_BOARD_ESP32_S3_LCD_EV_BOARD_2
// #define ESP_PANEL_BOARD_ESP32_S3_USB_OTG
#else
/*-------------------------------- LCD Related --------------------------------*/
/* Set to 0 if not using LCD */
#define ESP_PANEL_USE_LCD (1)
#if ESP_PANEL_USE_LCD
/**
* LCD IC name. Choose one of the following:
* - ILI9341
* - GC9503, GC9A01
* - ST7262, ST7789, ST7796
*/
#define ESP_PANEL_LCD_NAME ST7262
/* LCD resolution in pixels */
#define ESP_PANEL_LCD_H_RES (800)
#define ESP_PANEL_LCD_V_RES (480)
/* LCD Bus Settings */
/**
* If set to 1, the bus will skip to initialize the corresponding host. Users need to initialize the host in advance.
* It is useful if other devices use the same host. Please ensure that the host is initialized only once.
*/
#define ESP_PANEL_LCD_BUS_SKIP_INIT_HOST (1)
/**
* LCD bus type. Choose one of the following:
* - 0: I2C (not supported yet)
* - 1: SPI
* - 2: I80 (not supported yet)
* - 3: RGB
*/
#define ESP_PANEL_LCD_BUS_TYPE (3)
/**
* LCD bus parameters.
*
* Please refer to https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/lcd.html for details.
*/
#if ESP_PANEL_LCD_BUS_TYPE == 0
#elif ESP_PANEL_LCD_BUS_TYPE == 1
#define ESP_PANEL_LCD_BUS_HOST_ID (1)
#define ESP_PANEL_LCD_SPI_IO_CS (5)
#define ESP_PANEL_LCD_SPI_IO_DC (4)
#define ESP_PANEL_LCD_SPI_MODE (0)
#define ESP_PANEL_LCD_SPI_CLK_HZ (40 * 1000 * 1000)
#define ESP_PANEL_LCD_SPI_TRANS_QUEUE_SZ (10)
#define ESP_PANEL_LCD_SPI_CMD_BITS (8)
#define ESP_PANEL_LCD_SPI_PARAM_BITS (8)
#if !ESP_PANEL_LCD_BUS_SKIP_INIT_HOST
#define ESP_PANEL_LCD_SPI_IO_SCK (7)
#define ESP_PANEL_LCD_SPI_IO_MOSI (6)
#define ESP_PANEL_LCD_SPI_IO_MISO (-1)
#endif /* ESP_PANEL_LCD_BUS_SKIP_INIT_HOST */
#elif ESP_PANEL_LCD_BUS_TYPE == 2
#elif ESP_PANEL_LCD_BUS_TYPE == 3
#define ESP_PANEL_LCD_RGB_CLK_HZ (14 * 1000 * 1000)
#define ESP_PANEL_LCD_RGB_HPW (10)
#define ESP_PANEL_LCD_RGB_HBP (10)
#define ESP_PANEL_LCD_RGB_HFP (20)
#define ESP_PANEL_LCD_RGB_VPW (10)
#define ESP_PANEL_LCD_RGB_VBP (10)
#define ESP_PANEL_LCD_RGB_VFP (10)
#define ESP_PANEL_LCD_RGB_PCLK_ACTIVE_NEG (0)
#define ESP_PANEL_LCD_RGB_DATA_WIDTH (16)
#define ESP_PANEL_LCD_RGB_IO_HSYNC (46)
#define ESP_PANEL_LCD_RGB_IO_VSYNC (3)
#define ESP_PANEL_LCD_RGB_IO_DE (5)
#define ESP_PANEL_LCD_RGB_IO_PCLK (7)
#define ESP_PANEL_LCD_RGB_IO_DATA0 (14)
#define ESP_PANEL_LCD_RGB_IO_DATA1 (38)
#define ESP_PANEL_LCD_RGB_IO_DATA2 (18)
#define ESP_PANEL_LCD_RGB_IO_DATA3 (17)
#define ESP_PANEL_LCD_RGB_IO_DATA4 (10)
#define ESP_PANEL_LCD_RGB_IO_DATA5 (39)
#define ESP_PANEL_LCD_RGB_IO_DATA6 (0)
#define ESP_PANEL_LCD_RGB_IO_DATA7 (45)
#define ESP_PANEL_LCD_RGB_IO_DATA8 (48)
#define ESP_PANEL_LCD_RGB_IO_DATA9 (47)
#define ESP_PANEL_LCD_RGB_IO_DATA10 (21)
#define ESP_PANEL_LCD_RGB_IO_DATA11 (1)
#define ESP_PANEL_LCD_RGB_IO_DATA12 (2)
#define ESP_PANEL_LCD_RGB_IO_DATA13 (42)
#define ESP_PANEL_LCD_RGB_IO_DATA14 (41)
#define ESP_PANEL_LCD_RGB_IO_DATA15 (40)
#define ESP_PANEL_LCD_RGB_IO_DISP (-1)
#if !ESP_PANEL_LCD_BUS_SKIP_INIT_HOST
#define ESP_PANEL_LCD_SPI_CLK_HZ (500 * 1000)
#define ESP_PANEL_LCD_SPI_MODE (0)
#define ESP_PANEL_LCD_SPI_CMD_BYTES (1)
#define ESP_PANEL_LCD_SPI_PARAM_BYTES (1)
#define ESP_PANEL_LCD_SPI_USE_DC_BIT (1)
#define ESP_PANEL_LCD_SPI_DC_ZERO_ON_DATA (0)
#define ESP_PANEL_LCD_SPI_LSB_FIRST (0)
#define ESP_PANEL_LCD_SPI_CS_HIGH_ACTIVE (0)
#define ESP_PANEL_LCD_SPI_DEL_KEEP_CS (1)
#define ESP_PANEL_LCD_SPI_CS_USE_EXPNADER (1)
#define ESP_PANEL_LCD_SPI_SCL_USE_EXPNADER (1)
#define ESP_PANEL_LCD_SPI_SDA_USE_EXPNADER (1)
#define ESP_PANEL_LCD_SPI_IO_CS (1)
#define ESP_PANEL_LCD_SPI_IO_SCL (2)
#define ESP_PANEL_LCD_SPI_IO_SDA (3)
#endif /* ESP_PANEL_LCD_BUS_SKIP_INIT_HOST */
#endif /* ESP_PANEL_LCD_BUS_TYPE */
/* LCD Color Settings */
/* LCD color depth in bits */
#define ESP_PANEL_LCD_COLOR_BITS (32)
/*
* LCD Color Space. Choose one of the following:
* - 0: RGB
* - 1: BGR
*/
#define ESP_PANEL_LCD_COLOR_SPACE (0)
#define ESP_PANEL_LCD_INEVRT_COLOR (0)
/* LCD Transformation Flags */
#define ESP_PANEL_LCD_SWAP_XY (0)
#define ESP_PANEL_LCD_MIRROR_X (0)
#define ESP_PANEL_LCD_MIRROR_Y (0)
/* LCD Other Settings */
/* IO num of RESET pin, set to -1 if not use */
#define ESP_PANEL_LCD_IO_RST (-1)
#define ESP_PANEL_LCD_RST_LEVEL (0)
#endif /* ESP_PANEL_USE_LCD */
/*-------------------------------- LCD Touch Related --------------------------------*/
/* Set to 0 if not using LCD touch */
#define ESP_PANEL_USE_LCD_TOUCH (1)
#if ESP_PANEL_USE_LCD_TOUCH
/**
* LCD Touch IC name. Choose one of the following:
* - CST816S
* - FT5x06
* - GT1151, GT911
* - TT21100
* - STMPE610
*/
#define ESP_PANEL_LCD_TOUCH_NAME GT911
/* LCD Touch resolution in pixels */
#define ESP_PANEL_LCD_TOUCH_H_RES (ESP_PANEL_LCD_H_RES)
#define ESP_PANEL_LCD_TOUCH_V_RES (ESP_PANEL_LCD_V_RES)
/* LCD Touch Bus Settings */
/**
* If set to 1, the bus will skip to initialize the corresponding host. Users need to initialize the host in advance.
* It is useful if other devices use the same host. Please ensure that the host is initialized only once.
*/
#define ESP_PANEL_LCD_TOUCH_BUS_SKIP_INIT_HOST (0)
/**
* LCD touch bus type. Choose one of the following:
* - 0: I2C
* - 1: SPI
*/
#define ESP_PANEL_LCD_TOUCH_BUS_TYPE (0)
/**
* LCD touch bus parameters.
*
* Please refer to https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/lcd.html for details.
*/
#if ESP_PANEL_LCD_TOUCH_BUS_TYPE == 0
#define ESP_PANEL_LCD_TOUCH_BUS_HOST_ID (0)
#if !ESP_PANEL_LCD_TOUCH_BUS_SKIP_INIT_HOST
#define ESP_PANEL_LCD_TOUCH_I2C_CLK_HZ (400 * 1000)
#define ESP_PANEL_LCD_TOUCH_I2C_SCL_PULLUP (0)
#define ESP_PANEL_LCD_TOUCH_I2C_SDA_PULLUP (0)
#define ESP_PANEL_LCD_TOUCH_I2C_IO_SCL (9)
#define ESP_PANEL_LCD_TOUCH_I2C_IO_SDA (8)
#endif /* ESP_PANEL_LCD_TOUCH_BUS_SKIP_INIT_HOST */
#elif ESP_PANEL_LCD_TOUCH_BUS_TYPE == 1
#define ESP_PANEL_LCD_TOUCH_BUS_HOST_ID (1)
#define ESP_PANEL_LCD_TOUCH_SPI_IO_CS (5)
#if !ESP_PANEL_LCD_TOUCH_BUS_SKIP_INIT_HOST
#define ESP_PANEL_LCD_TOUCH_SPI_IO_SCK (7)
#define ESP_PANEL_LCD_TOUCH_SPI_IO_MOSI (6)
#define ESP_PANEL_LCD_TOUCH_SPI_IO_MISO (4)
#endif /* ESP_PANEL_LCD_TOUCH_BUS_SKIP_INIT_HOST */
#endif /* ESP_PANEL_LCD_TOUCH_BUS_TYPE */
/* LCD Touch Transformation Flags */
#define ESP_PANEL_LCD_TOUCH_SWAP_XY (0)
#define ESP_PANEL_LCD_TOUCH_MIRROR_X (0)
#define ESP_PANEL_LCD_TOUCH_MIRROR_Y (0)
/* LCD Touch Other Settings */
#define ESP_PANEL_LCD_TOUCH_IO_RST (-1)
#define ESP_PANEL_LCD_TOUCH_IO_INT (-1)
#define ESP_PANEL_LCD_TOUCH_RST_LEVEL (0)
#define ESP_PANEL_LCD_TOUCH_INT_LEVEL (0)
#endif /* ESP_PANEL_USE_LCD_TOUCH */
/*-------------------------------- Backlight Related --------------------------------*/
#define ESP_PANEL_USE_BL (0)
#if ESP_PANEL_USE_BL
/* IO num of backlight pin */
#define ESP_PANEL_LCD_IO_BL (45)
/* If the backlight is on when high level, set to 1; otherwise to 0 */
#define ESP_PANEL_LCD_BL_ON_LEVEL (1)
/* Set to 1 if use PWM for backlight brightness control. */
#define ESP_PANEL_LCD_BL_USE_PWM (0)
#if ESP_PANEL_LCD_BL_USE_PWM
/**
* Backlight LEDC Parameters.
*
* Please refer to https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/ledc.html for details.
*/
#define ESP_PANEL_LCD_BL_PWM_TIMER (0)
#define ESP_PANEL_LCD_BL_PWM_CHANNEL (0)
#define ESP_PANEL_LCD_BL_PWM_RESOLUTION (10)
#define ESP_PANEL_LCD_BL_PWM_FREQ_HZ (5000)
#endif /* ESP_PANEL_LCD_BL_USE_PWM */
#endif /* ESP_PANEL_USE_BL */
/*-------------------------------- Others --------------------------------*/
/* Assert on error. Otherwise return error code */
#define ESP_PANEL_CHECK_RESULT_ASSERT (0)
#endif /* ESP_PANEL_USE_SUPPORTED_BOARD */
// *INDENT-OFF*
#endif