Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions ports/esp32/boards/LILYGO_TDISPLAY/board.json
Original file line number Diff line number Diff line change
@@ -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"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions ports/esp32/boards/LILYGO_TDISPLAY/mpconfigboard.cmake
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 2 additions & 0 deletions ports/esp32/boards/LILYGO_TDISPLAY/mpconfigboard.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define MICROPY_HW_BOARD_NAME "LilyGo T-Display"
#define MICROPY_HW_MCU_NAME "ESP32"
27 changes: 27 additions & 0 deletions ports/esp32/boards/LILYGO_TWATCH_2020/board.json
Original file line number Diff line number Diff line change
@@ -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"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ports/esp32/boards/LILYGO_TWATCH_2020/manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include("$(PORT_DIR)/boards/manifest.py")
12 changes: 12 additions & 0 deletions ports/esp32/boards/LILYGO_TWATCH_2020/mpconfigboard.cmake
Original file line number Diff line number Diff line change
@@ -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)
7 changes: 7 additions & 0 deletions ports/esp32/boards/LILYGO_TWATCH_2020/mpconfigboard.h
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_BOARD_NAME="LILYGO T-Watch 2020 V1"
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_BOARD_NAME="LILYGO T-Watch 2020 V2"
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_BOARD_NAME="LILYGO T-Watch 2020 V3"
)
9 changes: 9 additions & 0 deletions ports/esp32/boards/LILYGO_TWATCH_2020/partitions.csv
Original file line number Diff line number Diff line change
@@ -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,
6 changes: 6 additions & 0 deletions ports/esp32/boards/LILYGO_TWATCH_2020/sdkconfig.board
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 4 additions & 0 deletions scripts/menu-esp32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ configs=(
"ESP32_GENERIC_S3"
"ESP32_GENERIC_S3 SPIRAM_OCT"
"M5STACK_CORE2"
"LILYGO_TDISPLAY"
"LILYGO_TWATCH_2020 V1"
"LILYGO_TWATCH_2020 V2"
"LILYGO_TWATCH_2020 V3"
)

# Function to display menu and get user choice
Expand Down
Loading