Add ESP32 boards: LILYGO T-Display and LILYGO T-Watch 2020 V1/V2/V3 (#93)

This commit is contained in:
PGNetHun 2025-03-15 19:05:16 +01:00 committed by GitHub
parent 97a35a10a0
commit b75129d314
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{
"deploy": [
"../deploy.md"
],
"docs": "https://lilygo.cc/products/lilygo%C2%AE-ttgo-t-display-1-14-inch-lcd-esp32-control-board",
"features": [
"BLE",
"WiFi",
"Dual-core",
"External Flash",
"Display",
"USB-C"
],
"images": [
"lilygo-tdisplay.webp"
],
"mcu": "esp32",
"product": "LilyGO T-Display",
"thumbnail": "",
"url": "https://lilygo.cc",
"vendor": "LilyGO"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -0,0 +1,7 @@
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
${SDKCONFIG_IDF_VERSION_SPECIFIC}
boards/sdkconfig.ble
)
set(LV_CFLAGS -DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=1)

View File

@ -0,0 +1,2 @@
#define MICROPY_HW_BOARD_NAME "LilyGo T-Display"
#define MICROPY_HW_MCU_NAME "ESP32"

View File

@ -0,0 +1,27 @@
{
"deploy": [
"../deploy.md"
],
"docs": "https://www.lilygo.cc/products/t-watch-2020-v3",
"features": [
"BLE",
"WiFi",
"Dual-core",
"External Flash",
"External RAM",
"SDCard",
"IMU",
"Battery Charging",
"Display",
"Microphone",
"USB"
],
"images": [
"lilygo-twatch2020-v3.webp"
],
"mcu": "esp32",
"product": "LilyGO T-Watch 2020 V3",
"thumbnail": "",
"url": "https://lilygo.cc",
"vendor": "LilyGO"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -0,0 +1 @@
include("$(PORT_DIR)/boards/manifest.py")

View File

@ -0,0 +1,12 @@
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
${SDKCONFIG_IDF_VERSION_SPECIFIC}
boards/sdkconfig.ble
boards/sdkconfig.240mhz
boards/sdkconfig.spiram
boards/LILYGO_TWATCH_2020/sdkconfig.board
)
set(LV_CFLAGS -DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=1)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)

View File

@ -0,0 +1,7 @@
#ifndef MICROPY_HW_BOARD_NAME
#define MICROPY_HW_BOARD_NAME "LILYGO T-Watch 2020"
#endif
#ifndef MICROPY_HW_MCU_NAME
#define MICROPY_HW_MCU_NAME "ESP32"
#endif

View File

@ -0,0 +1,3 @@
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_BOARD_NAME="LILYGO T-Watch 2020 V1"
)

View File

@ -0,0 +1,3 @@
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_BOARD_NAME="LILYGO T-Watch 2020 V2"
)

View File

@ -0,0 +1,3 @@
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_BOARD_NAME="LILYGO T-Watch 2020 V3"
)

View File

@ -0,0 +1,9 @@
# Note: 4MB factory partition for large libraries such as lvgl.
# all the remaining space is used for a FAT partition containing
# the user's python programs.
#
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x6000,
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 0x400000,
vfs, data, fat, 0x410000, 0xBF0000,
1 # Note: 4MB factory partition for large libraries such as lvgl.
2 # all the remaining space is used for a FAT partition containing
3 # the user's python programs.
4 #
5 # Name, Type, SubType, Offset, Size, Flags
6 nvs, data, nvs, 0x9000, 0x6000,
7 phy_init, data, phy, 0xf000, 0x1000,
8 factory, app, factory, 0x10000, 0x400000,
9 vfs, data, fat, 0x410000, 0xBF0000,

View File

@ -0,0 +1,6 @@
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_SPIRAM_SPEED_80M=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="boards/LILYGO_TWATCH_2020/partitions.csv"
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
CONFIG_ESPTOOLPY_FLASHSIZE="16MB"

View File

@ -9,6 +9,10 @@ configs=(
"ESP32_GENERIC_S3" "ESP32_GENERIC_S3"
"ESP32_GENERIC_S3 SPIRAM_OCT" "ESP32_GENERIC_S3 SPIRAM_OCT"
"M5STACK_CORE2" "M5STACK_CORE2"
"LILYGO_TDISPLAY"
"LILYGO_TWATCH_2020 V1"
"LILYGO_TWATCH_2020 V2"
"LILYGO_TWATCH_2020 V3"
) )
# Function to display menu and get user choice # Function to display menu and get user choice