Skip to content

Commit

Permalink
Feature/settings in board (#6)
Browse files Browse the repository at this point in the history
* Fix for speak without internet

* Added boards, removed unused partitions
  • Loading branch information
rzeldent authored Dec 16, 2023
1 parent f017413 commit 3dd068b
Show file tree
Hide file tree
Showing 27 changed files with 1,808 additions and 68 deletions.
74 changes: 74 additions & 0 deletions boards/esp32-1732S019C.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"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",
"-DHAS_TOUCH",
"-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",
"-DBUTTON_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"
}
66 changes: 66 additions & 0 deletions boards/esp32-1732S019N.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"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_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",
"-DBUTTON_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-1732S019N",
"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"
}
58 changes: 58 additions & 0 deletions boards/esp32-2424S012C.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"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",
"-DHAS_TOUCH",
"-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",
"-DBUTTON_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"
}
50 changes: 50 additions & 0 deletions boards/esp32-2424S012N.json
Original file line number Diff line number Diff line change
@@ -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",
"-DBUTTON_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"
}
73 changes: 73 additions & 0 deletions boards/esp32-2432S024C.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"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",
"-DHAS_TOUCH",
"-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",
"-DBUTTON_BOOT=0",
"-DHAS_TF",
"-DTF_CS=5",
"-DTF_MOSI=23",
"-DTF_SCLK=18",
"-DTF_MISO=19",
"-DHAS_RGB_LED",
"-DLED_R=4",
"-DLED_G=16",
"-DLED_B=17",
"-DHAS_CDR",
"-DCDR_IN=34",
"-DHAS_SPEAK",
"-DSPEAKER=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"
}
65 changes: 65 additions & 0 deletions boards/esp32-2432S024N.json
Original file line number Diff line number Diff line change
@@ -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",
"-DBUTTON_BOOT=0",
"-DHAS_TF",
"-DTF_CS=5",
"-DTF_MOSI=23",
"-DTF_SCLK=18",
"-DTF_MISO=19",
"-DHAS_RGB_LED",
"-DLED_R=4",
"-DLED_G=16",
"-DLED_B=17",
"-DHAS_CDR",
"-DCDR_IN=34",
"-DHAS_SPEAK",
"-DSPEAKER=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"
}
Loading

0 comments on commit 3dd068b

Please sign in to comment.