Skip to content

Commit

Permalink
Merge pull request #7 from mcuw/6-board-lilygo-t-camera-plus-s3
Browse files Browse the repository at this point in the history
[6] add LilyGo T-CameraPlus S3 support and upgrade platformio 6.1.15
  • Loading branch information
mcuw authored Sep 12, 2024
2 parents 833555c + f28dee6 commit c657841
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
python-version: "3.x"
architecture: "x64"
- name: Install PlatformIO
run: python3 -m pip install platformio==6.1.13
run: python3 -m pip install platformio==6.1.15
- name: Build firmwares
run: FIRMWARE_VERSION=main platformio run
- name: Archive
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
on:
push:
branches:
- 'main'
tags:
- "*"
pull_request:
branches: [main]
jobs:
build:
name: Build
Expand All @@ -17,7 +17,7 @@ jobs:
python-version: "3.x"
architecture: "x64"
- name: Install PlatformIO
run: python3 -m pip install platformio==6.1.13
run: python3 -m pip install platformio==6.1.15
- name: Build firmwares
run: FIRMWARE_VERSION=${{github.ref_name}} platformio run
- name: Archive
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Update the [CHANGELOG.md](CHANGELOG.md) file before you are creating a new relea

- ESP32 (buy with affiliate link: [LILYGO T-Beam](https://s.click.aliexpress.com/e/_DBzslDV) with LoRA, lolin32, lolin D32 pro)
- ESP32 S2
- ESP32 S3 (buy with affiliate link: [LILYGO T-Display S3](https://s.click.aliexpress.com/e/_DBmOMkn), [LILYGO T-Display-S3 AMOLED](https://s.click.aliexpress.com/e/_DmboYpZ), [LILYGO T-Display-S3 Touch](https://s.click.aliexpress.com/e/_DCBgPlV), [LILYGO T-Display S3 Long](https://s.click.aliexpress.com/e/_Dl6UVMx)), [LilyGo T-Watch S3](https://s.click.aliexpress.com/e/_DEZVvH1)
- ESP32 S3 (buy with affiliate link: [LILYGO T-Display S3](https://s.click.aliexpress.com/e/_DBmOMkn), [LILYGO T-Display-S3 AMOLED](https://s.click.aliexpress.com/e/_DmboYpZ), [LILYGO T-Display-S3 Touch](https://s.click.aliexpress.com/e/_DCBgPlV), [LILYGO T-Display S3 Long](https://s.click.aliexpress.com/e/_Dl6UVMx)), [LilyGo T-Watch S3](https://s.click.aliexpress.com/e/_DEZVvH1), [LilyGo T-CameraPlus ESP32-S3](https://s.click.aliexpress.com/e/_DkytBeT)
- ESP32 C6 with WiFi 6 and BT-5 LE (buy with affiliate link: [UICPAL nanoESP32-C6](https://s.click.aliexpress.com/e/_DdZ83IB) with up to 16MB flash, [ESP32-C6](https://s.click.aliexpress.com/e/_DeLjVMb) with 4MB flash and W2812 RGB LED)

## Disclaimer
Expand Down
56 changes: 56 additions & 0 deletions boards/LilyGo-T-CameraPlus-ESP32-S3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"build": {
"arduino": {
"ldscript": "esp32s3_out.ld",
"memory_type": "qio_qspi",
"partitions": "default_16MB.csv"
},
"core": "esp32",
"extra_flags": [
"-D ARDUINO_LILYGO_T_CAMERAPLUS_S3",
"-D ARDUINO_USB_MODE=1",
"-D ARDUINO_USB_CDC_ON_BOOT=1",
"-D BOARD_HAS_PSRAM=1",
"-D ARDUINO_RUNNING_CORE=1",
"-D ARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"hwids": [
[
"0x303A",
"0x83CF"
],
[
"0x303A",
"0x1001"
]
],
"mcu": "esp32s3",
"variant": "esp32s3"
},
"connectivity": [
"wifi",
"bluetooth"
],
"debug": {
"default_tool": "esp-builtin",
"onboard_tools": ["esp-builtin"],
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "LILYGO T-CameraPlus ESP32-S3 (16M Flash 8M PSRAM)",
"upload": {
"flash_size": "16MB",
"maximum_ram_size": 327680,
"maximum_size": 16777216,
"require_upload_port": true,
"speed": 921600
},
"url": "https://www.lilygo.cc/products/t-camera-plus-s3",
"vendor": "LilyGo"
}
11 changes: 6 additions & 5 deletions boards/LilyGo-T-Display-S3-long.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
},
"core": "esp32",
"extra_flags": [
"-DARDUINO_ESP32S3_DEV",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-D ARDUINO_ESP32S3_DEV",
"-D ARDUINO_USB_MODE=1",
"-D ARDUINO_USB_CDC_ON_BOOT=1",
"-D BOARD_HAS_PSRAM=1",
"-D ARDUINO_RUNNING_CORE=1",
"-D ARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
9 changes: 5 additions & 4 deletions boards/LilyGo-T-Watch-S3.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
},
"core": "esp32",
"extra_flags": [
"-DARDUINO_TWATCH_S3",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-D ARDUINO_TWATCH_S3",
"-D ARDUINO_USB_MODE=1",
"-D BOARD_HAS_PSRAM=1",
"-D ARDUINO_RUNNING_CORE=1",
"-D ARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
7 changes: 4 additions & 3 deletions boards/esp32-c6-n16.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"mcu": "esp32c6",
"variant": "esp32c6",
"extra_flags": [
"-DARDUINO_ESP32S3_DEV",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_USB_CDC_ON_BOOT=1"
"-D ARDUINO_ESP32S3_DEV",
"-D ARDUINO_USB_MODE=1",
"-D ARDUINO_USB_CDC_ON_BOOT=1",
"-D BOARD_HAS_PSRAM=1"
]
},
"connectivity": [
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32-c6-n4.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"extra_flags": [
"-DARDUINO_ESP32C6_DEV",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_USB_CDC_ON_BOOT=1"
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-D BOARD_HAS_PSRAM=1"
]
},
"connectivity": [
Expand Down
15 changes: 12 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ upload_speed = 921600
[extra]
; https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/external-ram.html
build_flags_psram =
-DBOARD_HAS_PSRAM
-DBOARD_HAS_PSRAM=1
-mfix-esp32-psram-cache-issue ; https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/external-ram.html#esp32-rev-v1
lib_deps_builtin =
SPI
Expand Down Expand Up @@ -195,7 +195,6 @@ board = LilyGo-T-Display-S3-long
board_build.partitions = huge_app.csv
build_flags =
${esp32s3.build_flags}
${extra.build_flags_psram} ; 8MB PSRAM
lib_deps =
${esp32s3.lib_deps}

Expand All @@ -217,6 +216,16 @@ board = LilyGo-T-Watch-S3
board_build.partitions = huge_app.csv
build_flags =
${esp32s3.build_flags}
${extra.build_flags_psram} ; 8MB PSRAM
lib_deps =
${esp32s3.lib_deps}

; LILYGO: https://www.lilygo.cc/products/t-camera-plus-s3
; repository: https://github.com/Xinyuan-LilyGO/T-CameraPlus-S3
; Buy and support mcuw on aliexpress (affiliate link): https://s.click.aliexpress.com/e/_DkytBeT
[env:lilygo-t-cameraplus-s3]
board = LilyGo-T-CameraPlus-ESP32-S3
board_build.partitions = huge_app.csv
build_flags =
${esp32s3.build_flags}
lib_deps =
${esp32s3.lib_deps}

0 comments on commit c657841

Please sign in to comment.