Add ESP32 boards: LILYGO T-Display and LILYGO T-Watch 2020 V1/V2/V3 (#93)
This commit is contained in:
parent
97a35a10a0
commit
b75129d314
22
ports/esp32/boards/LILYGO_TDISPLAY/board.json
Normal file
22
ports/esp32/boards/LILYGO_TDISPLAY/board.json
Normal 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"
|
||||||
|
}
|
||||||
BIN
ports/esp32/boards/LILYGO_TDISPLAY/lilygo-tdisplay.webp
Normal file
BIN
ports/esp32/boards/LILYGO_TDISPLAY/lilygo-tdisplay.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
7
ports/esp32/boards/LILYGO_TDISPLAY/mpconfigboard.cmake
Normal file
7
ports/esp32/boards/LILYGO_TDISPLAY/mpconfigboard.cmake
Normal 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)
|
||||||
2
ports/esp32/boards/LILYGO_TDISPLAY/mpconfigboard.h
Normal file
2
ports/esp32/boards/LILYGO_TDISPLAY/mpconfigboard.h
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#define MICROPY_HW_BOARD_NAME "LilyGo T-Display"
|
||||||
|
#define MICROPY_HW_MCU_NAME "ESP32"
|
||||||
27
ports/esp32/boards/LILYGO_TWATCH_2020/board.json
Normal file
27
ports/esp32/boards/LILYGO_TWATCH_2020/board.json
Normal 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"
|
||||||
|
}
|
||||||
BIN
ports/esp32/boards/LILYGO_TWATCH_2020/lilygo-twatch2020-v3.webp
Normal file
BIN
ports/esp32/boards/LILYGO_TWATCH_2020/lilygo-twatch2020-v3.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
1
ports/esp32/boards/LILYGO_TWATCH_2020/manifest.py
Normal file
1
ports/esp32/boards/LILYGO_TWATCH_2020/manifest.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
include("$(PORT_DIR)/boards/manifest.py")
|
||||||
12
ports/esp32/boards/LILYGO_TWATCH_2020/mpconfigboard.cmake
Normal file
12
ports/esp32/boards/LILYGO_TWATCH_2020/mpconfigboard.cmake
Normal 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)
|
||||||
7
ports/esp32/boards/LILYGO_TWATCH_2020/mpconfigboard.h
Executable file
7
ports/esp32/boards/LILYGO_TWATCH_2020/mpconfigboard.h
Executable 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
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
list(APPEND MICROPY_DEF_BOARD
|
||||||
|
MICROPY_HW_BOARD_NAME="LILYGO T-Watch 2020 V1"
|
||||||
|
)
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
list(APPEND MICROPY_DEF_BOARD
|
||||||
|
MICROPY_HW_BOARD_NAME="LILYGO T-Watch 2020 V2"
|
||||||
|
)
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
list(APPEND MICROPY_DEF_BOARD
|
||||||
|
MICROPY_HW_BOARD_NAME="LILYGO T-Watch 2020 V3"
|
||||||
|
)
|
||||||
9
ports/esp32/boards/LILYGO_TWATCH_2020/partitions.csv
Normal file
9
ports/esp32/boards/LILYGO_TWATCH_2020/partitions.csv
Normal 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,
|
||||||
|
6
ports/esp32/boards/LILYGO_TWATCH_2020/sdkconfig.board
Normal file
6
ports/esp32/boards/LILYGO_TWATCH_2020/sdkconfig.board
Normal 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"
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user