From 6410e8a01dfce7fb43cefc967cdd74f467346ed7 Mon Sep 17 00:00:00 2001 From: Julio MATARRANZ Date: Sun, 31 Dec 2023 11:16:12 +0100 Subject: [PATCH] fix #264 RGB with generic ESP32RGB.h --- platformio.ini | 3 ++- src/drivers/devices/device.h | 2 -- src/drivers/devices/m5StampS3.h | 10 ---------- 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 src/drivers/devices/m5StampS3.h diff --git a/platformio.ini b/platformio.ini index dace0bb8..b403eddb 100644 --- a/platformio.ini +++ b/platformio.ini @@ -454,7 +454,8 @@ 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 + -D ESP32RGB=1 + -D RGB_LED_PIN=21 lib_deps = bblanchon/ArduinoJson@^6.21.2 https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2 diff --git a/src/drivers/devices/device.h b/src/drivers/devices/device.h index ddc45c6b..bd6b7596 100644 --- a/src/drivers/devices/device.h +++ b/src/drivers/devices/device.h @@ -21,8 +21,6 @@ #include "lilygoV1TDisplay.h" #elif defined(ESP32_CAM) #include "esp32CAM.h" -#elif defined(M5_STAMP_S3) -#include "m5StampS3.h" #elif defined(ESP32RGB) #include "esp32RGB.h" diff --git a/src/drivers/devices/m5StampS3.h b/src/drivers/devices/m5StampS3.h deleted file mode 100644 index fd09fcac..00000000 --- a/src/drivers/devices/m5StampS3.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef _M5_STAMP_S3_H -#define _M5_STAMP_S3_H - -#define PIN_BUTTON_1 0 -#define RGB_LED_PIN 21 - -#define LED_DISPLAY -#define USE_LED - -#endif