Skip to content

Commit

Permalink
Merge pull request #217 from gyengus/support-m5-stamps3
Browse files Browse the repository at this point in the history
Add support for M5 StampS3 device
  • Loading branch information
BitMaker-hub authored Nov 27, 2023
2 parents abfa17d + 88cbec1 commit 5c661ea
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
28 changes: 27 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[platformio]
globallib_dir = lib
default_envs = esp32cam, ESP32-2432S028R, NerminerV2, ESP32-devKitv1, NerminerV2-S3-DONGLE, NerminerV2-S3-AMOLED, NerminerV2-T-QT, NerdminerV2-T-Display_V1, ESP32-2432S028R
default_envs = esp32cam, ESP32-2432S028R, NerminerV2, ESP32-devKitv1, NerminerV2-S3-DONGLE, NerminerV2-S3-AMOLED, NerminerV2-T-QT, NerdminerV2-T-Display_V1, ESP32-2432S028R, M5-StampS3



Expand Down Expand Up @@ -258,3 +258,29 @@ lib_deps =
https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2
mathertel/OneButton @ ^2.0.3
https://github.com/arduino-libraries/NTPClient

[env:M5-StampS3]
platform = espressif32
board = m5stack-stamps3
framework = arduino
monitor_filters =
esp32_exception_decoder
time
log2file
monitor_speed = 115200
upload_speed = 115200
board_build.partitions = huge_app.csv
build_flags =
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
-D M5_STAMP_S3=1
lib_deps =
bblanchon/ArduinoJson@^6.21.2
https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2
mathertel/OneButton @ ^2.0.3
arduino-libraries/NTPClient
lib_ignore =
TFT_eSPI
SD
rm67162
SPI
2 changes: 2 additions & 0 deletions src/drivers/devices/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include "lilygoV1TDisplay.h"
#elif defined(ESP32_CAM)
#include "esp32CAM.h"
#elif defined(M5_STAMP_S3)
#include "m5StampS3.h"

#else
#error "No device defined"
Expand Down
9 changes: 9 additions & 0 deletions src/drivers/devices/m5StampS3.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef _M5_STAMP_S3_H
#define _M5_STAMP_S3_H

#define PIN_BUTTON_1 0
#define LED_PIN 9

#define NO_DISPLAY

#endif

0 comments on commit 5c661ea

Please sign in to comment.