-
Notifications
You must be signed in to change notification settings - Fork 85
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
how to create new board json config pin of ESP32-S3-Touch-LCD-4.3B? #238
Comments
Hi winitboonkliang, You just have to put these values in the same format as the existing board defines. Then make sure it is in the boards directory. |
Touch screen ok
|
st7262 library file part? for edit some pin used extra port RST used EXIO3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
my new board from waveshare ESP32-S3-Touch-LCD-4.3B
https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-4.3B
LCD ST7262
this demo code config pin from waveshare
#define I2C_MASTER_SCL_IO 9 /*!< GPIO number used for I2C master clock /
#define I2C_MASTER_SDA_IO 8 /!< GPIO number used for I2C master data /
#define I2C_MASTER_NUM 0 /!< I2C master i2c port number, the number of i2c peripheral interfaces available will depend on the chip /
#define I2C_MASTER_FREQ_HZ 400000 /!< I2C master clock frequency /
#define I2C_MASTER_TX_BUF_DISABLE 0 /!< I2C master doesn't need buffer /
#define I2C_MASTER_RX_BUF_DISABLE 0 /!< I2C master doesn't need buffer */
#define I2C_MASTER_TIMEOUT_MS 1000
#define GPIO_INPUT_IO_4 4
#define GPIO_INPUT_PIN_SEL 1ULL<<GPIO_INPUT_IO_4
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////// Please update the following configuration according to your LCD spec //////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#define EXAMPLE_LCD_H_RES (LVGL_PORT_H_RES)
#define EXAMPLE_LCD_V_RES (LVGL_PORT_V_RES)
#define EXAMPLE_LCD_PIXEL_CLOCK_HZ (16 * 1000 * 1000)
#define EXAMPLE_LCD_BIT_PER_PIXEL (16)
#define EXAMPLE_RGB_BIT_PER_PIXEL (16)
#define EXAMPLE_RGB_DATA_WIDTH (16)
#define EXAMPLE_RGB_BOUNCE_BUFFER_SIZE (EXAMPLE_LCD_H_RES * CONFIG_EXAMPLE_LCD_RGB_BOUNCE_BUFFER_HEIGHT)
#define EXAMPLE_LCD_IO_RGB_DISP (-1) // -1 if not used
#define EXAMPLE_LCD_IO_RGB_VSYNC (GPIO_NUM_3)
#define EXAMPLE_LCD_IO_RGB_HSYNC (GPIO_NUM_46)
#define EXAMPLE_LCD_IO_RGB_DE (GPIO_NUM_5)
#define EXAMPLE_LCD_IO_RGB_PCLK (GPIO_NUM_7)
#define EXAMPLE_LCD_IO_RGB_DATA0 (GPIO_NUM_14)
#define EXAMPLE_LCD_IO_RGB_DATA1 (GPIO_NUM_38)
#define EXAMPLE_LCD_IO_RGB_DATA2 (GPIO_NUM_18)
#define EXAMPLE_LCD_IO_RGB_DATA3 (GPIO_NUM_17)
#define EXAMPLE_LCD_IO_RGB_DATA4 (GPIO_NUM_10)
#define EXAMPLE_LCD_IO_RGB_DATA5 (GPIO_NUM_39)
#define EXAMPLE_LCD_IO_RGB_DATA6 (GPIO_NUM_0)
#define EXAMPLE_LCD_IO_RGB_DATA7 (GPIO_NUM_45)
#define EXAMPLE_LCD_IO_RGB_DATA8 (GPIO_NUM_48)
#define EXAMPLE_LCD_IO_RGB_DATA9 (GPIO_NUM_47)
#define EXAMPLE_LCD_IO_RGB_DATA10 (GPIO_NUM_21)
#define EXAMPLE_LCD_IO_RGB_DATA11 (GPIO_NUM_1)
#define EXAMPLE_LCD_IO_RGB_DATA12 (GPIO_NUM_2)
#define EXAMPLE_LCD_IO_RGB_DATA13 (GPIO_NUM_42)
#define EXAMPLE_LCD_IO_RGB_DATA14 (GPIO_NUM_41)
#define EXAMPLE_LCD_IO_RGB_DATA15 (GPIO_NUM_40)
#define EXAMPLE_LCD_IO_RST (-1) // -1 if not used
#define EXAMPLE_PIN_NUM_BK_LIGHT (-1) // -1 if not used
#define EXAMPLE_LCD_BK_LIGHT_ON_LEVEL (1)
#define EXAMPLE_LCD_BK_LIGHT_OFF_LEVEL !EXAMPLE_LCD_BK_LIGHT_ON_LEVEL
#define EXAMPLE_PIN_NUM_TOUCH_RST (-1) // -1 if not used
#define EXAMPLE_PIN_NUM_TOUCH_INT (-1) // -1 if not used
config esp32-8048S043C.json file is RGB pin but demo code form waveshare pin is DATA0-DATA15
The text was updated successfully, but these errors were encountered: