From 82471f899e35979012c8bd1e2e1bd3d4658d37dc Mon Sep 17 00:00:00 2001 From: Julio Date: Mon, 4 Dec 2023 20:14:19 +0100 Subject: [PATCH] feat : support s3 mini devices --- platformio.ini | 63 +++++++++++++++++++++++++- src/drivers/devices/device.h | 4 ++ src/drivers/devices/esp32S3MiniWeact.h | 10 ++++ src/drivers/devices/esp32S3MiniWemos.h | 10 ++++ 4 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 src/drivers/devices/esp32S3MiniWeact.h create mode 100644 src/drivers/devices/esp32S3MiniWemos.h diff --git a/platformio.ini b/platformio.ini index 19e844f..318b84e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -10,8 +10,69 @@ [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, M5-StampS3, ESP32-S3-devKitv1 +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, ESP32-S3-devKitv1, ESP32-S3-mini-wemos, ESP32-S3-mini-weact + +;-------------------------------------------------------------------- + +[env:ESP32-S3-mini-wemos] +platform = espressif32 +board = lolin_s3_mini +framework = arduino +monitor_filters = + esp32_exception_decoder + time + log2file +board_build.arduino.memory_type = qio_opi +monitor_speed = 115200 +upload_speed = 115200 +board_build.partitions = huge_app.csv +build_flags = + -D BOARD_HAS_PSRAM + -D ARDUINO_USB_MODE=1 + -D ARDUINO_USB_CDC_ON_BOOT=1 + -D S3MINIWEMOS=1 + ;-D DEBUG_MINING=1 +lib_deps = + https://github.com/takkaO/OpenFontRender + bblanchon/ArduinoJson@^6.21.2 + https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2 + mathertel/OneButton @ ^2.0.3 + arduino-libraries/NTPClient + https://github.com/FastLED/FastLED +lib_ignore = + TFT_eSPI +;-------------------------------------------------------------------- + +;-------------------------------------------------------------------- + +[env:ESP32-S3-mini-weact] +platform = espressif32 +board = lolin_s3_mini +framework = arduino +monitor_filters = + esp32_exception_decoder + time + log2file +board_build.arduino.memory_type = qio_opi +monitor_speed = 115200 +upload_speed = 115200 +board_build.partitions = huge_app.csv +build_flags = + -D BOARD_HAS_PSRAM + -D ARDUINO_USB_MODE=1 + -D ARDUINO_USB_CDC_ON_BOOT=1 + -D S3MINIWEACT=1 + ;-D DEBUG_MINING=1 +lib_deps = + https://github.com/takkaO/OpenFontRender + bblanchon/ArduinoJson@^6.21.2 + https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2 + mathertel/OneButton @ ^2.0.3 + arduino-libraries/NTPClient + https://github.com/FastLED/FastLED +lib_ignore = + TFT_eSPI ;-------------------------------------------------------------------- [env:ESP32-S3-devKitv1] diff --git a/src/drivers/devices/device.h b/src/drivers/devices/device.h index 27b92d8..dc1af80 100644 --- a/src/drivers/devices/device.h +++ b/src/drivers/devices/device.h @@ -23,6 +23,10 @@ #include "m5StampS3.h" #elif defined(DEVKITV1RGB) #include "esp32DevKitRGB.h" +#elif defined(S3MINIWEMOS) +#include "esp32S3MiniWemos.h" +#elif defined(S3MINIWEACT) +#include "esp32S3MiniWeact.h" #else #error "No device defined" diff --git a/src/drivers/devices/esp32S3MiniWeact.h b/src/drivers/devices/esp32S3MiniWeact.h new file mode 100644 index 0000000..0a25f5a --- /dev/null +++ b/src/drivers/devices/esp32S3MiniWeact.h @@ -0,0 +1,10 @@ +#ifndef _ESP32_S3_MINI_WEACT_H +#define _ESP32_S3_MINI_WEACT_H + +#define PIN_BUTTON_1 0 +#define RGB_LED_PIN 48 + +#define LED_DISPLAY +#define USE_LED + +#endif \ No newline at end of file diff --git a/src/drivers/devices/esp32S3MiniWemos.h b/src/drivers/devices/esp32S3MiniWemos.h new file mode 100644 index 0000000..f32b7c4 --- /dev/null +++ b/src/drivers/devices/esp32S3MiniWemos.h @@ -0,0 +1,10 @@ +#ifndef _ESP32_S3_MINI_WEMOS_H +#define _ESP32_S3_MINI_WEMOS_H + +#define PIN_BUTTON_1 0 +#define RGB_LED_PIN 47 + +#define LED_DISPLAY +#define USE_LED + +#endif \ No newline at end of file