From c9b701310d03ab80bc8c59e5eab666ba88c0a799 Mon Sep 17 00:00:00 2001 From: Rene Zeldenthuis Date: Wed, 13 Dec 2023 00:07:45 +0100 Subject: [PATCH] Moved settings to board definitions --- README.md | 56 +++++++++++-- boards/ESP32-1732S019C.json | 73 +++++++++++++++++ .../ESP32-1732S019N.json | 23 +++++- boards/ESP32-2424S012C.json | 57 ++++++++++++++ boards/ESP32-2424S012N.json | 50 ++++++++++++ boards/ESP32-2432S024C.json | 72 +++++++++++++++++ boards/ESP32-2432S024N.json | 65 ++++++++++++++++ boards/ESP32-2432S024R.json | 72 +++++++++++++++++ boards/ESP32-2432S028R.json | 72 +++++++++++++++++ boards/ESP32-2432S032C.json | 72 +++++++++++++++++ boards/ESP32-2432S032N.json | 65 ++++++++++++++++ boards/ESP32-2432S032R.json | 72 +++++++++++++++++ boards/ESP32-3248S035C.json | 72 +++++++++++++++++ boards/ESP32-3248S035R.json | 72 +++++++++++++++++ boards/ESP32-4827S043C.json | 71 +++++++++++++++++ boards/ESP32-4827S043N.json | 64 +++++++++++++++ boards/ESP32-4827S043R.json | 71 +++++++++++++++++ boards/ESP32-8048S043C.json | 71 +++++++++++++++++ boards/ESP32-8048S043N.json | 64 +++++++++++++++ boards/ESP32-8048S043R.json | 71 +++++++++++++++++ boards/ESP32-8048S050C.json | 71 +++++++++++++++++ boards/ESP32-8048S050N.json | 64 +++++++++++++++ boards/ESP32-8048S050R.json | 71 +++++++++++++++++ boards/ESP32-8048S070C.json | 78 +++++++++++++++++++ boards/ESP32-8048S070N.json | 64 +++++++++++++++ include/esp32_smartdisplay.h | 23 ++++++ 26 files changed, 1665 insertions(+), 11 deletions(-) create mode 100644 boards/ESP32-1732S019C.json rename assets/boards/esp32-s3-devkitc-1-n16-psram.json => boards/ESP32-1732S019N.json (51%) create mode 100644 boards/ESP32-2424S012C.json create mode 100644 boards/ESP32-2424S012N.json create mode 100644 boards/ESP32-2432S024C.json create mode 100644 boards/ESP32-2432S024N.json create mode 100644 boards/ESP32-2432S024R.json create mode 100644 boards/ESP32-2432S028R.json create mode 100644 boards/ESP32-2432S032C.json create mode 100644 boards/ESP32-2432S032N.json create mode 100644 boards/ESP32-2432S032R.json create mode 100644 boards/ESP32-3248S035C.json create mode 100644 boards/ESP32-3248S035R.json create mode 100644 boards/ESP32-4827S043C.json create mode 100644 boards/ESP32-4827S043N.json create mode 100644 boards/ESP32-4827S043R.json create mode 100644 boards/ESP32-8048S043C.json create mode 100644 boards/ESP32-8048S043N.json create mode 100644 boards/ESP32-8048S043R.json create mode 100644 boards/ESP32-8048S050C.json create mode 100644 boards/ESP32-8048S050N.json create mode 100644 boards/ESP32-8048S050R.json create mode 100644 boards/ESP32-8048S070C.json create mode 100644 boards/ESP32-8048S070N.json diff --git a/README.md b/README.md index 4d747d0..d3361d4 100644 --- a/README.md +++ b/README.md @@ -57,11 +57,15 @@ They can be bought in the [Sunton Store](https://www.aliexpress.com/store/110019 | ESP32-2432S032C | ESP32-WROOM-32 | 4Mb | n/a | 2 x 240Mhz | 240x320 | 3.2" | [ST7796](assets/datasheets/ST7796.pdf) | [GT911](assets/datasheets//GT911.pdf) | yes | [W25Q32JV](assets/datasheets/25Q32JVSSIQ.pdf) | yes | yes | [Ali Express](https://www.aliexpress.com/item/1005006224494145.html) | | ESP32-3248S035R | ESP32-WROOM-32 | 4Mb | n/a | 2 x 240Mhz | 320x480 | 3.5" | [ST7796](assets/datasheets/ST7796.pdf) | [XPT2046](assets/datasheets/XPT2046.pdf) | yes | [W25Q32JV](assets/datasheets/25Q32JVSSIQ.pdf) | yes | yes | [Ali Express](https://www.aliexpress.com/item/1005004632953455.html) | | ESP32-3248S035C | ESP32-WROOM-32 | 4Mb | n/a | 2 x 240Mhz | 320x480 | 3.5" | [ST7796](assets/datasheets/ST7796.pdf) | [GT911](assets/datasheets//GT911.pdf) | yes | [W25Q32JV](assets/datasheets/25Q32JVSSIQ.pdf) | yes | yes | [Ali Express](https://www.aliexpress.com/item/1005004632953455.html) | -| ESP32-4827S043R | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 480x272 | 4.3" | Direct 16 bits parallel GPIO | [XPT2046](assets/datasheets/XPT2046.pdf) | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005006110360174.html) | -| ESP32-4827S043C | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 480x272 | 4.3" | Direct 16 bits parallel GPIO | [GT911](assets/datasheets//GT911.pdf) | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005006110360174.html) | +| ESP32-4827S043R | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 480x272 | 4.3" | Direct 16 bits parallel GPIO | [XPT2046](assets/datasheets/XPT2046.pdf) | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005004788147691.html) | +| ESP32-4827S043C | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 480x272 | 4.3" | Direct 16 bits parallel GPIO | [GT911](assets/datasheets//GT911.pdf) | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005004788147691.html) | +| ESP32-8048S043N | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 800x480 | 4.3" | Direct 16 bits parallel GPIO | n/a | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005006110360174.html) | +| ESP32-8048S043R | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 800x480 | 4.3" | Direct 16 bits parallel GPIO | [XPT2046](assets/datasheets/XPT2046.pdf) | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005006110360174.html) | +| ESP32-8048S043C | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 800x480 | 4.3" | Direct 16 bits parallel GPIO | [GT911](assets/datasheets//GT911.pdf) | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005006110360174.html) | | ESP32-8048S050N | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 800x480 | 5.0" | Direct 16 bits parallel GPIO | n/a | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005005938915207.html) | | ESP32-8048S050C | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 800x480 | 5.0" | Direct 16 bits parallel GPIO | [GT911](assets/datasheets//GT911.pdf) | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005005938915207.html) | -| ESP32-8048S070N | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 800x480 | 7.0" | Direct 16 bits parallel GPIO | n/a | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005005928865239.html) | +| ESP32-8048S050R | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 800x480 | 5.0" | Direct 16 bits parallel GPIO | [XPT2046](assets/datasheets/XPT2046.pdf) | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005005938915207.html) | +| ESP32-8048S070N | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 800x480 | 7.0" | Direct 16 bits parallel GPIO | n/a | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005005928865239.htmlhttps://www.aliexpress.com/item/1005005928865239.html) | | ESP32-8048S070C | ESP32-S3-WROOM-1-MCN16R8 | 16Mb | 8Mb | 2 x 240Mhz | 800x480 | 7.0" | Direct 16 bits parallel GPIO | [GT911](assets/datasheets//GT911.pdf) | no | no | no | no | [Ali Express](https://www.aliexpress.com/item/1005005928865239.html) | >[!IMPORTANT] @@ -88,6 +92,7 @@ Additionally this demo provides: - Sound over I2S and internal DAC - Read the CDR (light sensor) - Control of the LEDs +- PlatformIO definitions for all the known boards - Full source code The next sections will guide you though the process of creating an application. However, knowledge of PlatformIO, C/C++ and LVGL is required! @@ -102,10 +107,11 @@ This library is made for usage in PlatformIO. If not familiar with PlatformIO pl Make sure you have PlatformIO installed and functional. Follow the documentation on their site: [https://docs.platformio.org/en/latest/](https://docs.platformio.org/en/latest/) +Board definitions are in the directory ```boards```. This is done because some boards use an ESP32-S3 with **16Mb flash and 8Mb PSRAM**. There is no definition for this board in the standard PlatformIO boards selection. +Additionally, each board has definitions of the GPIO RGB LEDs, CDR sensor GPIO IO ports and other settings. + >[!IMPORTANT] ->Some boards use an ESP32-S2 with **16Mb flash and 8Mb PSRAM**. There is no definition for this board in the standard PlatformIO boards selection. -> ->To be able to use these boards copy the [board definition](assets/boards/esp32-s3-devkitc-1-n16-psram.json) from the ```assets/boards/esp32-s3-devkitc-1-n16-psram.json``` to the ```.platformio\platforms\espressif32\boards``` directory. +>To be able to use these boards copy the board definitions from the [```boards/```](boards/) to the ```.platformio\platforms\espressif32\boards``` directory. >The ```.platformio``` directory can be found under ```C:\Users\``` (Windows) or ```/home/``` (Linux). ### Step 2: Create a new project @@ -279,6 +285,42 @@ If there are problems: - Refer to the [discussions](https://github.com/rzeldent/esp32-smartdisplay/discussions) - If all fails, submit an [issue](https://github.com/rzeldent/esp32-smartdisplay/issues) but there are no guarantees as this is done in my spare time. +## More on board defines + +The boards definitions also contain information about the hardware available. + +| Define | Explanation | +|--- |--- | +| PUSHBUTTON_BOOT | GPIO of the BOOT pushbutton | +| TF_PIN_CS | GPIO of the CS of the TF card | +| TF_PIN_MOSI | GPIO of the MOSI of the TF card | +| TF_PIN_SCLK | GPIO of the SCLK of the TF card | +| TF_PIN_MISO | GPIO of the MISO of the TF card | +| TFT_WIDTH | The width of the panel | +| TFT_HEIGHT | The height of the panel | +| PIN_BCKL | The backlight GPIO pin | +| USES_ST7789 | Uses the ST7789 display driver | +| ST7789_SPI_HOST | The SPI host to use for the ST7789 | +| ST7789_SPI_BUS_CONFIG | The ST7789 SPI BUS configuration | +| ST7789_IO_SPI_CONFIG | The ST7789 IO SPI configuration | +| ST7789_PANEL_DEV_CONFIG | The ST7789 Panel device configuration | +| PANEL_SWAP_XY | Swap the panel for LV_DISP_ROT_NONE | +| PANEL_MIRROR_X | Mirror the panel horizontally for LV_DISP_ROT_NONE | +| PANEL_MIRROR_Y | Mirror the panel vertically for LV_DISP_ROT_NONE | +| PANEL_GAP_X | The horizontal gap before the panel starts | +| PANEL_GAP_Y | The vertical gap before the panel starts | +| USES_GT911 | Uses the GT911 capacitive touch controller | +| GT911_I2C_HOST | The GT11 I2C host to user for the GT911 | +| GT911_I2C_CONFIG | The GT11 I2C configuration | +| GT911_IO_I2C_CONFIG | The GT11 IO I2C configuration | +| GT911_TOUCH_CONFIG | The GT11 touch configuration | +| TOUCH_ROT_SWAP_X | Swap the touch horizontally for for LV_DISP_ROT_NONE | +| TOUCH_ROT_SWAP_Y | Swap the touch vertically for for LV_DISP_ROT_NONE | + + + + + ## More on LVGL.h To use the LVGL library, a `lv_conf.h` file is required to define the settings for LVGL. @@ -444,7 +486,7 @@ The value ranges from 75mV (not covered) to 400mV (completely covered). >[!NOTE] >Not all boards have a LED. Refer to the [supported boards](#supported-boards) to see if this is available. -An 8 Ω speaker can be connected to the SPEAK pin. This is a 1.25 JST connector. +An 8Ω speaker can be connected to the SPEAK pin. This is a 1.25 JST connector. Beeps can be generated by generating a PWM signal on the SPEAK pin: ```c++ diff --git a/boards/ESP32-1732S019C.json b/boards/ESP32-1732S019C.json new file mode 100644 index 0000000..0c36b37 --- /dev/null +++ b/boards/ESP32-1732S019C.json @@ -0,0 +1,73 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_1732S019C", + "-DTFT_WIDTH=170", + "-DTFT_HEIGHT=320", + "-DPIN_BCKL=14", + "-DUSES_ST7789", + "-DST7789_SPI_HOST=SPI2_HOST", + "-DST7789_SPI_BUS_CONFIG={.mosi_io_num=13,.sclk_io_num=12,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DST7789_IO_SPI_CONFIG={.cs_gpio_num=10,.dc_gpio_num=11,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DST7789_PANEL_DEV_CONFIG={.reset_gpio_num=1,.color_space=ESP_LCD_COLOR_SPACE_RGB,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=false", + "-DPANEL_MIRROR_Y=false", + "-DPANEL_GAP_X=35", + "-DPANEL_GAP_Y=0", + "-DUSES_GT911", + "-DGT911_I2C_HOST=0", + "-DGT911_I2C_CONFIG={.mode=I2C_MODE_MASTER,.sda_io_num=9,.scl_io_num=46,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}}", + "-DGT911_IO_I2C_CONFIG={.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}}", + "-DGT911_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_3,.int_gpio_num=GPIO_NUM_8}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-1732S019C", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005059421229.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/assets/boards/esp32-s3-devkitc-1-n16-psram.json b/boards/ESP32-1732S019N.json similarity index 51% rename from assets/boards/esp32-s3-devkitc-1-n16-psram.json rename to boards/ESP32-1732S019N.json index 08262e8..d5b0fb8 100644 --- a/assets/boards/esp32-s3-devkitc-1-n16-psram.json +++ b/boards/ESP32-1732S019N.json @@ -12,7 +12,22 @@ "-DARDUINO_USB_MODE=1", "-DARDUINO_RUNNING_CORE=1", "-DARDUINO_EVENT_RUNNING_CORE=1", - "-DARDUINO_USB_CDC_ON_BOOT=0" + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_1732S019N", + "-DTFT_WIDTH=170", + "-DTFT_HEIGHT=320", + "-DPIN_BCKL=14", + "-DUSES_ST7789", + "-DST7789_SPI_HOST=SPI2_HOST", + "-DST7789_SPI_BUS_CONFIG={.mosi_io_num=13,.sclk_io_num=12,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DST7789_IO_SPI_CONFIG={.cs_gpio_num=10,.dc_gpio_num=11,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DST7789_PANEL_DEV_CONFIG={.reset_gpio_num=1,.color_space=ESP_LCD_COLOR_SPACE_RGB,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=false", + "-DPANEL_MIRROR_Y=false", + "-DPANEL_GAP_X=35", + "-DPANEL_GAP_Y=0", + "-DPUSHBUTTON_BOOT=0" ], "f_cpu": "240000000L", "f_flash": "80000000L", @@ -36,7 +51,7 @@ "arduino", "espidf" ], - "name": "Espressif ESP32-S3-DevKitC-1-N16R8V (16 MB QD, With PSRAM)", + "name": "ESP32-1732S019N", "upload": { "flash_size": "16MB", "maximum_ram_size": 327680, @@ -46,6 +61,6 @@ "require_upload_port": true, "speed": 460800 }, - "url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html", - "vendor": "Espressif" + "url": "https://www.aliexpress.com/item/1005005059421229.html", + "vendor": "Sunton" } \ No newline at end of file diff --git a/boards/ESP32-2424S012C.json b/boards/ESP32-2424S012C.json new file mode 100644 index 0000000..ff31422 --- /dev/null +++ b/boards/ESP32-2424S012C.json @@ -0,0 +1,57 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32c3_out.ld" + }, + "core": "esp32", + "f_cpu": "160000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "extra_flags": [ + "-DARDUINO_ESP32C3_DEV", + "-DESP32_2424S012C", + "-DTFT_WIDTH=240", + "-DTFT_HEIGHT=240", + "-DPIN_BCKL=3", + "-DUSES_GC9A01", + "-DGC9A01_SPI_HOST=SPI2_HOST", + "-DGC9A01_SPI_BUS_CONFIG={.mosi_io_num=7,.miso_io_num=-1,.sclk_io_num=6,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DGC9A01_IO_SPI_CONFIG={.cs_gpio_num=10,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=80000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DGC9A01_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DUSES_CST816S", + "-DCST816S_I2C_HOST=0", + "-DCST816S_I2C_CONFIG={.mode=I2C_MODE_MASTER,.sda_io_num=4,.scl_io_num=5,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={ .clk_speed=400000}}", + "-DCST816S_IO_I2C_CONFIG={.dev_addr=ESP_LCD_TOUCH_IO_I2C_CST816S_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=8,.flags={.disable_control_phase=1}}", + "-DCST816S_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_1,.int_gpio_num=GPIO_NUM_0}", + "-DTOUCH_ROT_SWAP_X false", + "-DTOUCH_ROT_SWAP_Y false", + "-DPUSHBUTTON_BOOT=0" + ], + "mcu": "esp32c3", + "variant": "esp32c3" + }, + "connectivity": [ + "wifi", + "bluetooth" + ], + "debug": { + "openocd_target": "esp32c3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-2424S012C", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005453515690.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-2424S012N.json b/boards/ESP32-2424S012N.json new file mode 100644 index 0000000..05acd2b --- /dev/null +++ b/boards/ESP32-2424S012N.json @@ -0,0 +1,50 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32c3_out.ld" + }, + "core": "esp32", + "f_cpu": "160000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "extra_flags": [ + "-DARDUINO_ESP32C3_DEV", + "-DESP32_2424S012N", + "-DTFT_WIDTH=240", + "-DTFT_HEIGHT=240", + "-DPIN_BCKL=3", + "-DUSES_GC9A01", + "-DGC9A01_SPI_HOST=SPI2_HOST", + "-DGC9A01_SPI_BUS_CONFIG={.mosi_io_num=7,.miso_io_num=-1,.sclk_io_num=6,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DGC9A01_IO_SPI_CONFIG={.cs_gpio_num=10,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=80000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DGC9A01_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DPUSHBUTTON_BOOT=0" + ], + "mcu": "esp32c3", + "variant": "esp32c3" + }, + "connectivity": [ + "wifi", + "bluetooth" + ], + "debug": { + "openocd_target": "esp32c3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-2424S012N", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005453515690.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-2432S024C.json b/boards/ESP32-2432S024C.json new file mode 100644 index 0000000..93f05d6 --- /dev/null +++ b/boards/ESP32-2432S024C.json @@ -0,0 +1,72 @@ +{ + "build": { + "arduino":{ + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32_DEV", + "-DESP32_2432S024C", + "-DTFT_WIDTH=240", + "-DTFT_HEIGHT=320", + "-DPIN_BCKL=27", + "-DUSES_ILI9341", + "-DILI9341_SPI_HOST=SPI2_HOST", + "-DILI9341_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DILI9341_IO_SPI_CONFIG={.cs_gpio_num=15,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DILI9341_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DUSES_CST816S", + "-DCST816S_I2C_HOST=0", + "-DCST816S_I2C_CONFIG={.mode=I2C_MODE_MASTER,.sda_io_num=33,.scl_io_num=32,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}}", + "-DCST816S_IO_I2C_CONFIG={.dev_addr=ESP_LCD_TOUCH_IO_I2C_CST816S_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=8,.flags={.disable_control_phase=1}}", + "-DCST816S_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_25,.int_gpio_num=GPIO_NUM_NC}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19", + "-DHAS_RGB_LED", + "-DLED_PIN_R=4", + "-DLED_PIN_G=16", + "-DLED_PIN_B=17", + "-DHAS_CDR", + "-DCDR_IN=34", + "-DHAS_SPEAKER", + "-DSPEAKER_PIN=26" + ], + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "esp32" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_board": "esp-wroom-32.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32_2432S024C", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005865107357.html", + "vendor": "Sunton" +} diff --git a/boards/ESP32-2432S024N.json b/boards/ESP32-2432S024N.json new file mode 100644 index 0000000..08ed9cd --- /dev/null +++ b/boards/ESP32-2432S024N.json @@ -0,0 +1,65 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32_DEV", + "-DESP32_2432S024N", + "-DTFT_WIDTH=240", + "-DTFT_HEIGHT=320", + "-DPIN_BCKL=27", + "-DUSES_ILI9341", + "-DILI9341_SPI_HOST=SPI2_HOST", + "-DILI9341_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DILI9341_IO_SPI_CONFIG={.cs_gpio_num=15,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DILI9341_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19", + "-DHAS_RGB_LED", + "-DLED_PIN_R=4", + "-DLED_PIN_G=16", + "-DLED_PIN_B=17", + "-DHAS_CDR", + "-DCDR_IN=34", + "-DHAS_SPEAKER", + "-DSPEAKER_PIN=26" + ], + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "esp32" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_board": "esp-wroom-32.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32_2432S024N", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005865107357.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-2432S024R.json b/boards/ESP32-2432S024R.json new file mode 100644 index 0000000..d8b6391 --- /dev/null +++ b/boards/ESP32-2432S024R.json @@ -0,0 +1,72 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32_DEV", + "-DESP32_2432S024R", + "-DTFT_WIDTH=240", + "-DTFT_HEIGHT=320", + "-DPIN_BCKL=27", + "-DUSES_ILI9341", + "-DILI9341_SPI_HOST=SPI2_HOST", + "-DILI9341_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DILI9341_IO_SPI_CONFIG={.cs_gpio_num=15,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DILI9341_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DUSES_XPT2046", + "-DXPT2046_SPI_HOST=SPI2_HOST", + "-DXPT2046_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DXPT2046_IO_SPI_CONFIG={.cs_gpio_num=33,.dc_gpio_num=-1,.spi_mode=SPI_MODE0,.pclk_hz=2000000,.trans_queue_depth=3,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DXPT2046_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_NC,.int_gpio_num=GPIO_NUM_36}", + "-DTOUCH_ROT_SWAP_X=true", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19", + "-DHAS_RGB_LED", + "-DLED_PIN_R=4", + "-DLED_PIN_G=16", + "-DLED_PIN_B=17", + "-DHAS_CDR", + "-DCDR_IN=34", + "-DHAS_SPEAKER", + "-DSPEAKER_PIN=26" + ], + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "esp32" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_board": "esp-wroom-32.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32_2432S024R", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005865107357.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-2432S028R.json b/boards/ESP32-2432S028R.json new file mode 100644 index 0000000..07c1cec --- /dev/null +++ b/boards/ESP32-2432S028R.json @@ -0,0 +1,72 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32_DEV", + "-DESP32_2432S028R", + "-DTFT_WIDTH=240", + "-DTFT_HEIGHT=320", + "-DPIN_BCKL=21", + "-DUSES_ILI9341", + "-DILI9341_SPI_HOST=SPI2_HOST", + "-DILI9341_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DILI9341_IO_SPI_CONFIG={.cs_gpio_num=15,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DILI9341_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DUSES_XPT2046", + "-DXPT2046_SPI_HOST=SPI3_HOST", + "-DXPT2046_SPI_BUS_CONFIG={.mosi_io_num=32,.miso_io_num=39,.sclk_io_num=25,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DXPT2046_IO_SPI_CONFIG={.cs_gpio_num=33,.dc_gpio_num=-1,.spi_mode=SPI_MODE0,.pclk_hz=2000000,.trans_queue_depth=3,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DXPT2046_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_NC,.int_gpio_num=GPIO_NUM_36}", + "-DTOUCH_ROT_SWAP_X=true", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19", + "-DHAS_RGB_LED", + "-DLED_PIN_R=4", + "-DLED_PIN_G=16", + "-DLED_PIN_B=17", + "-DHAS_CDR", + "-DCDR_IN=34", + "-DHAS_SPEAKER", + "-DSPEAKER_PIN=26" + ], + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "esp32" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_board": "esp-wroom-32.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32_2432S028R", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005004502250619.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-2432S032C.json b/boards/ESP32-2432S032C.json new file mode 100644 index 0000000..9ef6d31 --- /dev/null +++ b/boards/ESP32-2432S032C.json @@ -0,0 +1,72 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32_DEV", + "-DESP32_2432S032C", + "-DTFT_WIDTH=240", + "-DTFT_HEIGHT=320", + "-DPIN_BCKL=27", + "-DUSES_ST7796", + "-DST7796_SPI_HOST=SPI2_HOST", + "-DST7796_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DST7796_IO_SPI_CONFIG={.cs_gpio_num=15,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DST7796_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DUSES_GT911", + "-DGT911_I2C_HOST=0", + "-DGT911_I2C_CONFIG={.mode=I2C_MODE_MASTER,.sda_io_num=33,.scl_io_num=32,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}}", + "-DGT911_IO_I2C_CONFIG={.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}}", + "-DGT911_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_25,.int_gpio_num=GPIO_NUM_NC}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19", + "-DHAS_RGB_LED", + "-DLED_PIN_R=4", + "-DLED_PIN_G=16", + "-DLED_PIN_B=17", + "-DHAS_CDR", + "-DCDR_IN=34", + "-DHAS_SPEAKER", + "-DSPEAKER_PIN=26" + ], + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "esp32" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_board": "esp-wroom-32.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32_2432S032C", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005006224494145.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-2432S032N.json b/boards/ESP32-2432S032N.json new file mode 100644 index 0000000..2e6303d --- /dev/null +++ b/boards/ESP32-2432S032N.json @@ -0,0 +1,65 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32_DEV", + "-DESP32_2432S032N", + "-DTFT_WIDTH=240", + "-DTFT_HEIGHT=320", + "-DPIN_BCKL=27", + "-DUSES_ST7796", + "-DST7796_SPI_HOST=SPI2_HOST", + "-DST7796_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DST7796_IO_SPI_CONFIG={.cs_gpio_num=15,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DST7796_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19", + "-DHAS_RGB_LED", + "-DLED_PIN_R=4", + "-DLED_PIN_G=16", + "-DLED_PIN_B=17", + "-DHAS_CDR", + "-DCDR_IN=34", + "-DHAS_SPEAKER", + "-DSPEAKER_PIN=26" + ], + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "esp32" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_board": "esp-wroom-32.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32_2432S032N", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005006224494145.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-2432S032R.json b/boards/ESP32-2432S032R.json new file mode 100644 index 0000000..8669619 --- /dev/null +++ b/boards/ESP32-2432S032R.json @@ -0,0 +1,72 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32_DEV", + "-DESP32_2432S032R", + "-DTFT_WIDTH=240", + "-DTFT_HEIGHT=320", + "-DPIN_BCKL=27", + "-DUSES_ST7796", + "-DST7796_SPI_HOST=SPI2_HOST", + "-DST7796_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DST7796_IO_SPI_CONFIG={.cs_gpio_num=15,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DST7796_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DUSES_XPT2046", + "-DXPT2046_SPI_HOST=SPI2_HOST", + "-DXPT2046_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DXPT2046_IO_SPI_CONFIG={.cs_gpio_num=33,.dc_gpio_num=-1,.spi_mode=SPI_MODE0,.pclk_hz=2000000,.trans_queue_depth=3,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DXPT2046_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_NC,.int_gpio_num=GPIO_NUM_36}", + "-DTOUCH_ROT_SWAP_X=true", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19", + "-DHAS_RGB_LED", + "-DLED_PIN_R=4", + "-DLED_PIN_G=16", + "-DLED_PIN_B=17", + "-DHAS_CDR", + "-DCDR_IN=34", + "-DHAS_SPEAKER", + "-DSPEAKER_PIN=26" + ], + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "esp32" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_board": "esp-wroom-32.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32_2432S032R", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005006224494145.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-3248S035C.json b/boards/ESP32-3248S035C.json new file mode 100644 index 0000000..c6a6fac --- /dev/null +++ b/boards/ESP32-3248S035C.json @@ -0,0 +1,72 @@ +{ + "build": { + "arduino":{ + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32_DEV", + "-DESP32_3248S035R", + "-DTFT_WIDTH=320", + "-DTFT_HEIGHT=480", + "-DPIN_BCKL=27", + "-DUSES_ST7796", + "-DST7796_SPI_HOST=SPI2_HOST", + "-DST7796_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DST7796_IO_SPI_CONFIG={.cs_gpio_num=15,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DST7796_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DUSES_GT911", + "-DGT911_I2C_HOST=0", + "-DGT911_I2C_CONFIG={.mode=I2C_MODE_MASTER,.sda_io_num=33,.scl_io_num=32,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}}", + "-DGT911_IO_I2C_CONFIG={.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}}", + "-DGT911_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_25,.int_gpio_num=GPIO_NUM_NC}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19", + "-DHAS_RGB_LED", + "-DLED_PIN_R=4", + "-DLED_PIN_G=16", + "-DLED_PIN_B=17", + "-DHAS_LIGHTSENSOR", + "-DCDR_IN=34", + "-DHAS_SPEAKER", + "-DSPEAKER_PIN=26" + ], + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "esp32" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_board": "esp-wroom-32.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32_3248S035C", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005004632953455.html", + "vendor": "Sunton" +} diff --git a/boards/ESP32-3248S035R.json b/boards/ESP32-3248S035R.json new file mode 100644 index 0000000..b53f032 --- /dev/null +++ b/boards/ESP32-3248S035R.json @@ -0,0 +1,72 @@ +{ + "build": { + "arduino":{ + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32_DEV", + "-DESP32_3248S035R", + "-DTFT_WIDTH=320", + "-DTFT_HEIGHT=480", + "-DPIN_BCKL=27", + "-DUSES_ST7796", + "-DST7796_SPI_HOST=SPI2_HOST", + "-DST7796_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DST7796_IO_SPI_CONFIG={.cs_gpio_num=15,.dc_gpio_num=2,.spi_mode=SPI_MODE0,.pclk_hz=24000000,.trans_queue_depth=10,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DST7796_PANEL_DEV_CONFIG={.reset_gpio_num=-1,.color_space=ESP_LCD_COLOR_SPACE_BGR,.bits_per_pixel=16}", + "-DPANEL_SWAP_XY=false", + "-DPANEL_MIRROR_X=true", + "-DPANEL_MIRROR_Y=false", + "-DUSES_XPT2046", + "-DXPT2046_SPI_HOST=SPI2_HOST", + "-DXPT2046_SPI_BUS_CONFIG={.mosi_io_num=13,.miso_io_num=12,.sclk_io_num=14,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DXPT2046_IO_SPI_CONFIG={.cs_gpio_num=33,.dc_gpio_num=-1,.spi_mode=SPI_MODE0,.pclk_hz=2000000,.trans_queue_depth=3,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DXPT2046_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_NC,.int_gpio_num=GPIO_NUM_36}", + "-DTOUCH_ROT_SWAP_X=true", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19", + "-DHAS_RGB_LED", + "-DLED_PIN_R=4", + "-DLED_PIN_G=16", + "-DLED_PIN_B=17", + "-DHAS_LIGHTSENSOR", + "-DCDR_IN=34", + "-DHAS_SPEAKER", + "-DSPEAKER_PIN=26" + ], + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "esp32" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_board": "esp-wroom-32.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32_3248S035R", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005004632953455.html", + "vendor": "Sunton" +} diff --git a/boards/ESP32-4827S043C.json b/boards/ESP32-4827S043C.json new file mode 100644 index 0000000..5e8f228 --- /dev/null +++ b/boards/ESP32-4827S043C.json @@ -0,0 +1,71 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_4827S043C", + "-DTFT_WIDTH=480", + "-DTFT_HEIGHT=272", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7}:{8,3,46,9,1,5,6,7,15,16,4,45,48,47,21,14})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=4,.hsync_back_porch=43,.hsync_front_porch=8,.vsync_pulse_width=4,.vsync_back_porch=12,.vsync_front_porch=8,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=41,.de_gpio_num=40,.pclk_gpio_num=42,.data_gpio_nums=RBG_PANEL_GPIO,.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DUSES_GT911", + "-DGT911_I2C_HOST=0", + "-DGT911_I2C_CONFIG={.mode=I2C_MODE_MASTER,.sda_io_num=19,.scl_io_num=20,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}}", + "-DGT911_IO_I2C_CONFIG={.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}}", + "-DGT911_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_38,.int_gpio_num=GPIO_NUM_NC}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-4827S043C", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005004788147691.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-4827S043N.json b/boards/ESP32-4827S043N.json new file mode 100644 index 0000000..bfe4399 --- /dev/null +++ b/boards/ESP32-4827S043N.json @@ -0,0 +1,64 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_4827S043N", + "-DTFT_WIDTH=480", + "-DTFT_HEIGHT=272", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7}:{8,3,46,9,1,5,6,7,15,16,4,45,48,47,21,14})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=4,.hsync_back_porch=43,.hsync_front_porch=8,.vsync_pulse_width=4,.vsync_back_porch=12,.vsync_front_porch=8,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=41,.de_gpio_num=40,.pclk_gpio_num=42,.data_gpio_nums=RBG_PANEL_GPIO,.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-4827S043N", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005004788147691.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-4827S043R.json b/boards/ESP32-4827S043R.json new file mode 100644 index 0000000..d66fd2d --- /dev/null +++ b/boards/ESP32-4827S043R.json @@ -0,0 +1,71 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_4827S043R", + "-DTFT_WIDTH=480", + "-DTFT_HEIGHT=272", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7}:{8,3,46,9,1,5,6,7,15,16,4,45,48,47,21,14})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=4,.hsync_back_porch=43,.hsync_front_porch=8,.vsync_pulse_width=4,.vsync_back_porch=12,.vsync_front_porch=8,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=41,.de_gpio_num=40,.pclk_gpio_num=42,.data_gpio_nums=RBG_PANEL_GPIO,.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DUSES_XPT2046", + "-DXPT2046_SPI_HOST=SPI2_HOST", + "-DXPT2046_SPI_BUS_CONFIG={.mosi_io_num=11,.miso_io_num=13,.sclk_io_num=12,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DXPT2046_IO_SPI_CONFIG={.cs_gpio_num=38,.dc_gpio_num=-1,.spi_mode=SPI_MODE0,.pclk_hz=2000000,.trans_queue_depth=3,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DXPT2046_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_NC,.int_gpio_num=GPIO_NUM_18}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-4827S043R", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005004788147691.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-8048S043C.json b/boards/ESP32-8048S043C.json new file mode 100644 index 0000000..d416869 --- /dev/null +++ b/boards/ESP32-8048S043C.json @@ -0,0 +1,71 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_8048S043C", + "-DTFT_WIDTH=800", + "-DTFT_HEIGHT=480", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7}:{8,3,46,9,1,5,6,7,15,16,4,45,48,47,21,14})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=4,.hsync_back_porch=8,.hsync_front_porch=8,.vsync_pulse_width=4,.vsync_back_porch=8,.vsync_front_porch=8,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=41,.de_gpio_num=40,.pclk_gpio_num=42,.data_gpio_nums=RBG_PANEL_GPIO,.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DUSES_GT911", + "-DGT911_I2C_HOST=0", + "-DGT911_I2C_CONFIG={.mode=I2C_MODE_MASTER,.sda_io_num=19,.scl_io_num=20,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}}", + "-DGT911_IO_I2C_CONFIG={.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}}", + "-DGT911_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_38,.int_gpio_num=GPIO_NUM_NC}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-8048S043C", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005006110360174.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-8048S043N.json b/boards/ESP32-8048S043N.json new file mode 100644 index 0000000..94079be --- /dev/null +++ b/boards/ESP32-8048S043N.json @@ -0,0 +1,64 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_8048S043N", + "-DTFT_WIDTH=800", + "-DTFT_HEIGHT=480", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7}:{8,3,46,9,1,5,6,7,15,16,4,45,48,47,21,14})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=4,.hsync_back_porch=8,.hsync_front_porch=8,.vsync_pulse_width=4,.vsync_back_porch=8,.vsync_front_porch=8,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=41,.de_gpio_num=40,.pclk_gpio_num=42,.data_gpio_nums=RBG_PANEL_GPIO,.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-8048S043N", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005006110360174.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-8048S043R.json b/boards/ESP32-8048S043R.json new file mode 100644 index 0000000..a923579 --- /dev/null +++ b/boards/ESP32-8048S043R.json @@ -0,0 +1,71 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_8048S043R", + "-DTFT_WIDTH=800", + "-DTFT_HEIGHT=480", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7}:{8,3,46,9,1,5,6,7,15,16,4,45,48,47,21,14})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=4,.hsync_back_porch=8,.hsync_front_porch=8,.vsync_pulse_width=4,.vsync_back_porch=8,.vsync_front_porch=8,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=41,.de_gpio_num=40,.pclk_gpio_num=42,.data_gpio_nums=RBG_PANEL_GPIO,.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DUSES_XPT2046", + "-DXPT2046_SPI_HOST=SPI2_HOST", + "-DXPT2046_SPI_BUS_CONFIG={.mosi_io_num=11,.miso_io_num=13,.sclk_io_num=12,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DXPT2046_IO_SPI_CONFIG={.cs_gpio_num=38,.dc_gpio_num=-1,.spi_mode=SPI_MODE0,.pclk_hz=2000000,.trans_queue_depth=3,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DXPT2046_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_NC,.int_gpio_num=GPIO_NUM_18}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-8048S043N", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005006110360174.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-8048S050C.json b/boards/ESP32-8048S050C.json new file mode 100644 index 0000000..9d7e617 --- /dev/null +++ b/boards/ESP32-8048S050C.json @@ -0,0 +1,71 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_8048S050C", + "-DTFT_WIDTH=800", + "-DTFT_HEIGHT=480", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7}?{8,3,46,9,1,5,6,7,15,16,4,45,48,47,21,14})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=4,.hsync_back_porch=8,.hsync_front_porch=8,.vsync_pulse_width=4,.vsync_back_porch=8,.vsync_front_porch=8,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1,}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=41,.de_gpio_num=40,.pclk_gpio_num=42,.data_gpio_nums=RBG_PANEL_GPIO,.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DUSES_GT911", + "-DGT911_I2C_HOST=0", + "-DGT911_I2C_CONFIG={.mode=I2C_MODE_MASTER,.sda_io_num=19,.scl_io_num=20,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}}", + "-DGT911_IO_I2C_CONFIG={.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}}", + "-DGT911_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_38,.int_gpio_num=GPIO_NUM_NC}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-8048S050C", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005938915207.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-8048S050N.json b/boards/ESP32-8048S050N.json new file mode 100644 index 0000000..5ce9337 --- /dev/null +++ b/boards/ESP32-8048S050N.json @@ -0,0 +1,64 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_8048S050N", + "-DTFT_WIDTH=800", + "-DTFT_HEIGHT=480", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7}?{8,3,46,9,1,5,6,7,15,16,4,45,48,47,21,14})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=4,.hsync_back_porch=8,.hsync_front_porch=8,.vsync_pulse_width=4,.vsync_back_porch=8,.vsync_front_porch=8,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1,}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=41,.de_gpio_num=40,.pclk_gpio_num=42,.data_gpio_nums=RBG_PANEL_GPIO,.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-8048S050N", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005938915207.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-8048S050R.json b/boards/ESP32-8048S050R.json new file mode 100644 index 0000000..c1771d2 --- /dev/null +++ b/boards/ESP32-8048S050R.json @@ -0,0 +1,71 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_8048S050R", + "-DTFT_WIDTH=800", + "-DTFT_HEIGHT=480", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7}?{8,3,46,9,1,5,6,7,15,16,4,45,48,47,21,14})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=4,.hsync_back_porch=8,.hsync_front_porch=8,.vsync_pulse_width=4,.vsync_back_porch=8,.vsync_front_porch=8,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1,}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=41,.de_gpio_num=40,.pclk_gpio_num=42,.data_gpio_nums=RBG_PANEL_GPIO,.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DUSES_XPT2046", + "-DXPT2046_SPI_HOST=SPI2_HOST", + "-DXPT2046_SPI_BUS_CONFIG={.mosi_io_num=11,.miso_io_num=13,.sclk_io_num=12,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DXPT2046_IO_SPI_CONFIG={.cs_gpio_num=38,.dc_gpio_num=-1,.spi_mode=SPI_MODE0,.pclk_hz=2000000,.trans_queue_depth=3,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DXPT2046_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_NC,.int_gpio_num=GPIO_NUM_18}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-8048S050R", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005938915207.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-8048S070C.json b/boards/ESP32-8048S070C.json new file mode 100644 index 0000000..e5825bd --- /dev/null +++ b/boards/ESP32-8048S070C.json @@ -0,0 +1,78 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_8048S070C", + "-DTFT_WIDTH=800", + "-DTFT_HEIGHT=480", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,7,6,5,4,9,46,3,8,16,1,14,21,47,48,45}:{8,16,1,14,21,47,48,45,15,7,6,5,4,9,46,3})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=30,.hsync_back_porch=16,.hsync_front_porch=210,.vsync_pulse_width=13,.vsync_back_porch=10,.vsync_front_porch=22,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1,}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=40,.de_gpio_num=41,.pclk_gpio_num=42,.data_gpio_nums={8,=16,=1,=14,=21,=47,=48,=45,=15,=7,=6,=5,=4,=9,=46,=3},.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DUSES_XPT2046", + "-DXPT2046_SPI_HOST=SPI2_HOST", + "-DXPT2046_SPI_BUS_CONFIG={.mosi_io_num=11,.miso_io_num=13,.sclk_io_num=12,.quadwp_io_num=-1,.quadhd_io_num=-1}", + "-DXPT2046_IO_SPI_CONFIG={.cs_gpio_num=38,.dc_gpio_num=-1,.spi_mode=SPI_MODE0,.pclk_hz=2000000,.trans_queue_depth=3,.lcd_cmd_bits=8,.lcd_param_bits=8}", + "-DXPT2046_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_NC,.int_gpio_num=GPIO_NUM_18}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DUSES_GT911", + "-DGT911_I2C_HOST=0", + "-DGT911_I2C_CONFIG={.mode=I2C_MODE_MASTER,.sda_io_num=19,.scl_io_num=20,.sda_pullup_en=GPIO_PULLUP_ENABLE,.scl_pullup_en=GPIO_PULLUP_ENABLE,.master={.clk_speed=400000}}", + "-DGT911_IO_I2C_CONFIG={.dev_addr=ESP_LCD_TOUCH_IO_I2C_GT911_ADDRESS,.control_phase_bytes=1,.lcd_cmd_bits=16,.flags={.disable_control_phase=1}}", + "-DGT911_TOUCH_CONFIG={.x_max=TFT_WIDTH,.y_max=TFT_HEIGHT,.rst_gpio_num=GPIO_NUM_38,.int_gpio_num=GPIO_NUM_NC}", + "-DTOUCH_ROT_SWAP_X=false", + "-DTOUCH_ROT_SWAP_Y=false", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-8048S070C", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005928865239.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/boards/ESP32-8048S070N.json b/boards/ESP32-8048S070N.json new file mode 100644 index 0000000..86f3a38 --- /dev/null +++ b/boards/ESP32-8048S070N.json @@ -0,0 +1,64 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32s3_out.ld", + "partitions": "default_16MB.csv", + "memory_type": "qio_opi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=0", + "-DESP32_8048S070N", + "-DTFT_WIDTH=800", + "-DTFT_HEIGHT=480", + "-DPIN_BCKL=2", + "-DUSES_LCD_RGB", + "-DRBG_PANEL_GPIO=(LV_COLOR_16_SWAP!=0?{15,7,6,5,4,9,46,3,8,16,1,14,21,47,48,45}:{8,16,1,14,21,47,48,45,15,7,6,5,4,9,46,3})", + "-DRBG_PANEL_CONFIG={.clk_src=LCD_CLK_SRC_PLL160M,.timings={.pclk_hz=16000000,.h_res=TFT_WIDTH,.v_res=TFT_HEIGHT,.hsync_pulse_width=30,.hsync_back_porch=16,.hsync_front_porch=210,.vsync_pulse_width=13,.vsync_back_porch=10,.vsync_front_porch=22,.flags={.hsync_idle_low=1,.vsync_idle_low=1,.pclk_active_neg=1,}},.data_width=16,.psram_trans_align=64,.hsync_gpio_num=39,.vsync_gpio_num=40,.de_gpio_num=41,.pclk_gpio_num=42,.data_gpio_nums={8,=16,=1,=14,=21,=47,=48,=45,=15,=7,=6,=5,=4,=9,=46,=3},.disp_gpio_num=-1,.flags={.fb_in_psram=1}}", + "-DPUSHBUTTON_BOOT=0", + "-DHAS_TF", + "-DTF_PIN_CS=5", + "-DTF_PIN_MOSI=23", + "-DTF_PIN_SCLK=18", + "-DTF_PIN_MISO=19" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ESP32-8048S070N", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 327680, + "maximum_size": 16777216, + "use_1200bps_touch": true, + "wait_for_upload_port": true, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://www.aliexpress.com/item/1005005928865239.html", + "vendor": "Sunton" +} \ No newline at end of file diff --git a/include/esp32_smartdisplay.h b/include/esp32_smartdisplay.h index fde2ffb..dcc7756 100644 --- a/include/esp32_smartdisplay.h +++ b/include/esp32_smartdisplay.h @@ -4,6 +4,7 @@ #include #include +#if 0 // Push button #define PUSHBUTTON_BOOT 0 // TF Card @@ -12,6 +13,7 @@ #define TF_PIN_MOSI 23 #define TF_PIN_SCLK 18 #define TF_PIN_MISO 19 +#endif // LVGL lines buffered #define LVGL_PIXEL_BUFFER_LINES 16 @@ -23,6 +25,7 @@ #define PWM_BITS_BCKL 8 #define PWM_MAX_BCKL ((1 << PWM_BITS_BCKL) - 1) +#if 0 // ESP32_1732S019 N/C #if defined(ESP32_1732S019N) || defined(ESP32_1732S019C) #define TFT_WIDTH 170 @@ -51,7 +54,9 @@ #define TOUCH_ROT_SWAP_Y false #endif #endif +#endif +#if 0 // ESP32_2424S012 N/C #if defined(ESP32_2424S012N) || defined(ESP32_2424S012C) #define TFT_WIDTH 240 @@ -79,7 +84,9 @@ #define TOUCH_ROT_SWAP_Y false #endif #endif +#endif +#if 0 // ESP32_2432S024 N/R/C #if defined(ESP32_2432S024N) || defined(ESP32_2432S024R) || defined(ESP32_2432S024C) #define TFT_WIDTH 240 @@ -128,7 +135,9 @@ #define HAS_SPEAKER #define SPEAKER_PIN 26 #endif +#endif +#if 0 // ESP32_2432S028 R #ifdef ESP32_2432S028R #define TFT_WIDTH 240 @@ -164,7 +173,9 @@ #define HAS_SPEAKER #define SPEAKER_PIN 26 #endif +#endif +#if 0 // ESP32_2432S032 N/R/C #if defined(ESP32_2432S032N) || defined(ESP32_2432S032R) || defined(ESP32_2432S032C) #define TFT_WIDTH 240 @@ -214,7 +225,9 @@ #define HAS_SPEAKER #define SPEAKER_PIN 26 #endif +#endif +#if 0 // ESP32_3248S035 R/C #if defined(ESP32_3248S035R) || defined(ESP32_3248S035C) #define TFT_WIDTH 320 @@ -264,7 +277,9 @@ #define HAS_SPEAKER #define SPEAKER_PIN 26 #endif +#endif +#if 0 // ESP32_4827S043 N/R/C #if defined(ESP32_4827S043N) || defined(ESP32_4827S043R) || defined(ESP32_4827S043C) #define TFT_WIDTH 480 @@ -301,7 +316,9 @@ #endif #endif #endif +#endif +#if 0 // ESP32_8048S043 N/R/C #if defined(ESP32_8048S043N) || defined(ESP32_8048S043R) || defined(ESP32_8048S043C) #define TFT_WIDTH 800 @@ -339,7 +356,9 @@ #endif #endif #endif +#endif +#if 0 // ESP32_8048S050 N/R/C #if defined(ESP32_8048S050N) || defined(ESP32_8048S050R) || defined(ESP32_8048S050C) #define TFT_WIDTH 800 @@ -376,7 +395,9 @@ #endif #endif #endif +#endif +#if 0 // ESP32_8048S070 N/R/C #if defined(ESP32_8048S070N) || defined(ESP32_8048S070R) || defined(ESP32_8048S070C) #define TFT_WIDTH 800 @@ -413,6 +434,8 @@ #endif #endif #endif +#endif + #if defined(USES_CST816S) || defined(USES_XPT2046) || defined(USES_GT911) #define USES_TOUCH