Skip to content

Commit

Permalink
[BOARD] add esp32s3-m5stack-stamps3 (1technophile#2088)
Browse files Browse the repository at this point in the history
* [BOARD] add esp32s3-m5stack-stamps3

https://docs.m5stack.com/en/core/StampS3

* [BOARD] add esp32c3u-m5stamp

button long-press reset verified to work

* add build environments for addional M5Stack targets

esp32s3-m5stack-stamps3
esp32c3u-m5stamp

---------

Co-authored-by: Michael Haberler <git@mah.priv.at>
  • Loading branch information
mhaberler and Michael Haberler authored Oct 15, 2024
1 parent 3b3fe3e commit f86d89d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ jobs:
- "theengs-bridge-v11"
- "theengs-plug"
- "esp32dev-ble-broker"
- "esp32s3-m5stack-stamps3"
- "esp32c3u-m5stamp"
runs-on: ubuntu-latest
name: Build with PlatformIO
steps:
Expand Down
42 changes: 42 additions & 0 deletions environments.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,24 @@ build_flags =
'-DGateway_Name="OMG_ESP32_BLE"'
custom_description = BLE gateway on the S3

[env:esp32s3-m5stack-stamps3]
platform = ${com.esp32_platform}
board = esp32-s3-devkitc-1
lib_deps =
${com-esp32.lib_deps}
${libraries.ble}
${libraries.decoder}
${libraries.adafruit_neopixel}
build_flags =
${com-esp32.build_flags}
'-DZgatewayBT="BT"'
'-DLED_ADDRESSABLE_PIN1=21'
'-DLED_ADDRESSABLE_NUM=1'
'-DLED_ADDRESSABLE=true'
'-DNO_INT_TEMP_READING=true' ; Internal temperature reading not building on ESP32 C3 or S3
'-DGateway_Name="OMG_ESP32_BLE"'
custom_description = BLE gateway on the M5Stack StampS3

[env:esp32s3-atomS3U]
platform = ${com.esp32_platform}
board = m5stack-atoms3
Expand Down Expand Up @@ -1787,6 +1805,7 @@ build_flags =
'-DCONFIG_ESP_CONSOLE_UART=ESP_CONSOLE_USB_SERIAL_JTAG'

[env:esp32c3-m5stamp]
; https://docs.m5stack.com/en/core/stamp_c3
platform = ${com.esp32_platform}
board = esp32-c3-devkitm-1
board_build.partitions = min_spiffs.csv
Expand All @@ -1808,6 +1827,29 @@ build_flags =
custom_description = BLE gateway on ESP32C3
custom_hardware = M5Stamp C3

[env:esp32c3u-m5stamp]
; https://docs.m5stack.com/en/core/stamp_c3u
platform = ${com.esp32_platform}
board = esp32-c3-devkitm-1
board_build.partitions = min_spiffs.csv
lib_deps =
${com-esp32.lib_deps}
${libraries.wifimanager32}
${libraries.ble}
${libraries.decoder}
${libraries.adafruit_neopixel}
build_flags =
${com-esp32.build_flags}
'-DZgatewayBT="BT"'
'-DTRIGGER_GPIO=9'
'-DLED_ADDRESSABLE_PIN1=2'
'-DLED_ADDRESSABLE_NUM=1'
'-DLED_ADDRESSABLE=true'
'-DNO_INT_TEMP_READING=true' ; Internal temperature reading not building on ESP32 C3 or S3
'-DUSE_MAC_AS_GATEWAY_NAME'
custom_description = BLE gateway on ESP32C3
custom_hardware = M5Stamp C3U

[env:thingpulse-espgateway]
platform = ${com.esp32_platform}
board = esp32dev
Expand Down
3 changes: 3 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ extra_configs =
;default_envs = thingpulse-espgateway
;default_envs = theengs-bridge
;default_envs = esp32dev-ble-idf
;default_envs = esp32s3-m5stack-stamps3
;default_envs = esp32c3-m5stamp
;default_envs = esp32c3u-m5stamp

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ENVIRONMENTS PARAMETERS ;
Expand Down

0 comments on commit f86d89d

Please sign in to comment.