diff --git a/platformio.ini b/platformio.ini index d7fb52d..5568fa3 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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 @@ -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 diff --git a/src/drivers/devices/device.h b/src/drivers/devices/device.h index 7d8ba51..2396ea4 100644 --- a/src/drivers/devices/device.h +++ b/src/drivers/devices/device.h @@ -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" diff --git a/src/drivers/devices/m5StampS3.h b/src/drivers/devices/m5StampS3.h new file mode 100644 index 0000000..a7c4134 --- /dev/null +++ b/src/drivers/devices/m5StampS3.h @@ -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 \ No newline at end of file