Skip to content

Commit

Permalink
Merge pull request #165 from BlueAndi/support/esp32-s3-devkitc-1-n16r8v
Browse files Browse the repository at this point in the history
Support for esp32 s3 devkitc 1 n16r8v
  • Loading branch information
BlueAndi authored Apr 25, 2024
2 parents 5387360 + a7caa6d commit ca9aea7
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
needs: intro
strategy:
matrix:
environment: ["adafruit_feather_esp32_v2", "esp32doit-devkit-v1", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "ulanzi-tc001", "wemos_lolin_s2_mini"]
environment: ["adafruit_feather_esp32_v2", "esp32doit-devkit-v1", "esp32-s3-devkitc-1-n16r8v", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "ulanzi-tc001", "wemos_lolin_s2_mini"]

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
needs: intro
strategy:
matrix:
environment: ["adafruit_feather_esp32_v2", "esp32doit-devkit-v1", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "ulanzi-tc001", "wemos_lolin_s2_mini"]
environment: ["adafruit_feather_esp32_v2", "esp32doit-devkit-v1", "esp32-s3-devkitc-1-n16r8v", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "ulanzi-tc001", "wemos_lolin_s2_mini"]

steps:
- name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
needs: intro
strategy:
matrix:
environment: ["adafruit_feather_esp32_v2", "az-delivery-devkit-v4", "esp32doit-devkit-v1", "esp32-nodemcu", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "m5stack_core", "ulanzi-tc001", "wemos_lolin_s2_mini"]
environment: ["adafruit_feather_esp32_v2", "az-delivery-devkit-v4", "esp32doit-devkit-v1", "esp32-s3-devkitc-1-n16r8v", "esp32-nodemcu", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "m5stack_core", "ulanzi-tc001", "wemos_lolin_s2_mini"]

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
needs: intro
strategy:
matrix:
environment: ["adafruit_feather_esp32_v2", "az-delivery-devkit-v4", "esp32doit-devkit-v1", "esp32-nodemcu", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "m5stack_core", "ulanzi-tc001", "wemos_lolin_s2_mini"]
environment: ["adafruit_feather_esp32_v2", "az-delivery-devkit-v4", "esp32doit-devkit-v1", "esp32-s3-devkitc-1-n16r8v", "esp32-nodemcu", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "m5stack_core", "ulanzi-tc001", "wemos_lolin_s2_mini"]

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
needs: intro
strategy:
matrix:
environment: ["adafruit_feather_esp32_v2", "az-delivery-devkit-v4", "esp32doit-devkit-v1", "esp32-nodemcu", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "m5stack_core", "ulanzi-tc001", "wemos_lolin_s2_mini"]
environment: ["adafruit_feather_esp32_v2", "az-delivery-devkit-v4", "esp32doit-devkit-v1", "esp32-s3-devkitc-1-n16r8v", "esp32-nodemcu", "lilygo-ttgo-t-display", "lilygo-t-display-s3", "m5stack_core", "ulanzi-tc001", "wemos_lolin_s2_mini"]

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
Expand Down
53 changes: 53 additions & 0 deletions config/board.ini
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,59 @@ extra_scripts =
${config:smallHub75.extra_scripts}
pre:./scripts/get_git_rev.py

; ********************************************************************************
; ESP32-S3 DevKitC-1-N16R8V - LED matrix
; https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html
; ********************************************************************************
[board:esp32-s3-devkitc-1-n16r8v]
extends = mcu:esp32, display:led_matrix_column_major_alternating, config:normal
board = esp32-s3-devkitc-1
board_name = "ESP32-S3 DevKitC-1-N16R8V"
board_build.partitions = default_16MB.csv
board_build.filesystem = littlefs
board_upload.flash_size = 16MB
board_build.arduino.memory_type = qio_opi
build_flags =
${mcu:esp32.build_flags}
${display:led_matrix_column_major_alternating.build_flags}
${config:normal.build_flags}
-D BOARD_HAS_PSRAM
-D CONFIG_PIN_ONBOARD_LED=IoPin::NC
-D CONFIG_PIN_BUTTON_OK=4U
-D CONFIG_PIN_BUTTON_LEFT=IoPin::NC
-D CONFIG_PIN_BUTTON_RIGHT=IoPin::NC
-D CONFIG_PIN_DHT_IN=5U
-D CONFIG_PIN_I2C_SDA=8U
-D CONFIG_PIN_I2C_SCL=9U
-D CONFIG_PIN_TEST=IoPin::NC
-D CONFIG_PIN_I2S_WS=10U
-D CONFIG_PIN_I2S_SC=12U
-D CONFIG_PIN_I2S_DI=13U
-D CONFIG_PIN_LED_MATRIX_OUT=47U
-D CONFIG_PIN_LDR_IN=6U
-D CONFIG_PIN_BATTERY_IN=IoPin::NC
-D CONFIG_PIN_BUZZER_OUT=IoPin::NC
-D CONFIG_SENSOR_LDR=SensorLdr::LDR_TYPE_GL5528
-D CONFIG_SENSOR_LDR_SERIES_RESISTANCE=1000.0F
-D CONFIG_BUTTON_CTRL=1
-D CONFIG_LED_TOPO=ColumnMajorAlternatingLayout
-D CONFIG_SUPPLY_CURRENT=3500U
-D CONFIG_RTC=0
lib_deps =
${mcu:esp32.lib_deps_builtin}
${mcu:esp32.lib_deps_external}
${display:led_matrix_column_major_alternating.lib_deps_builtin}
${display:led_matrix_column_major_alternating.lib_deps_external}
${config:normal.lib_deps}
lib_ignore =
${mcu:esp32.lib_ignore_builtin}
${mcu:esp32.lib_ignore_external}
${display:led_matrix_column_major_alternating.lib_ignore_builtin}
${display:led_matrix_column_major_alternating.lib_ignore_external}
extra_scripts =
${config:normal.extra_scripts}
pre:./scripts/get_git_rev.py

; ********************************************************************************
; ESP32 NodeMCU - LED matrix
; ********************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions config/display.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ build_flags =
lib_deps_builtin =
HalLedMatrix
lib_deps_external =
makuna/NeoPixelBus @ ~2.7.5
https://github.com/Makuna/NeoPixelBus#89a6a8b0194846e8d68024bed4d3587fca92045d
lib_ignore_builtin =
HalHub75Esp32
HalTftDisplay
Expand All @@ -68,7 +68,7 @@ build_flags =
lib_deps_builtin =
HalLedMatrix
lib_deps_external =
makuna/NeoPixelBus @ ~2.7.5
https://github.com/Makuna/NeoPixelBus#89a6a8b0194846e8d68024bed4d3587fca92045d
lib_ignore_builtin =
HalHub75Esp32
HalTftDisplay
Expand Down
8 changes: 8 additions & 0 deletions doc/boards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ To find out which part shall be connected to which pin of your development board
* [AZ-Delivery ESP-32 Dev Kit C V4](#az-delivery-esp-32-dev-kit-c-v4)
* [DOIT ESP32 DEVKIT V1](#doit-esp32-devkit-v1)
* [DOIT ESP32 DEVKIT V1 - HUB75 panel](#doit-esp32-devkit-v1---hub75-panel)
* [ESP32-S3 DEVKITC-1-N16R8V](#esp32-s3-devkitc-1-n16r8v)
* [ESP32 NodeMCU](#esp32-nodemcu)
* [LILYGO® TTGO ESP32 T-Display](#lilygo-ttgo-esp32-t-display)
* [LILYGO® ESP32 T-Display S3](#lilygo-esp32-t-display-s3)
Expand Down Expand Up @@ -51,6 +52,13 @@ To find out which part shall be connected to which pin of your development board
* Display: [display:hub75-esp32](../../config/display.ini)
* Pixelix boards doesn't support HUB75 panels.

## ESP32-S3 DEVKITC-1-N16R8V
* Reference design: [ESP32-S3-DevKitC-1](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1-v1.0.html)
* Pinning:
* Board: [board:esp32-s3-devkitc-1-n16r8v](../../config/board.ini)
* Display: [display:led_matrix_column_major_alternating](../../config/display.ini)
* Not compatible with Pixelix boards.

## ESP32 NodeMCU
* Pinning:
* Board: [board:esp32-nodemcu](../../config/board.ini)
Expand Down
5 changes: 2 additions & 3 deletions lib/HalLedMatrix/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
}, {
"name": "YAGfx"
}, {
"owner": "makuna",
"name": "NeoPixelBus",
"version": "~2.7.3"
"name": "external-repo",
"version": "https://github.com/Makuna/NeoPixelBus#89a6a8b0194846e8d68024bed4d3587fca92045d"
}],
"frameworks": "*",
"platforms": "*"
Expand Down
12 changes: 12 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ extra_scripts =
${board:esp32doit-devkit-v1-hub75.extra_scripts}
${common:prog_usb.extra_scripts}

; ********************************************************************************
; ESP32-S3 DevKitC-1-N16R8V - LED matrix - Programming via USB
; ********************************************************************************
[env:esp32-s3-devkitc-1-n16r8v]
extends = board:esp32-s3-devkitc-1-n16r8v, common:prog_usb, mode:selected, checker
build_flags =
${board:esp32-s3-devkitc-1-n16r8v.build_flags}
${mode:selected.build_flags}
extra_scripts =
${board:esp32-s3-devkitc-1-n16r8v.extra_scripts}
${common:prog_usb.extra_scripts}

; ********************************************************************************
; ESP32 NodeMCU - LED matrix - Programming via USB
; ********************************************************************************
Expand Down

0 comments on commit ca9aea7

Please sign in to comment.