From bb0060797db4434268740be446af53d2a4382591 Mon Sep 17 00:00:00 2001 From: biscoito Date: Thu, 30 Nov 2023 18:37:14 -0300 Subject: [PATCH] Add support for ElectronicCats Wi-Fi Marauder Flipper Shield --- esp32_marauder/configs.h | 15 ++++++++++++--- esp32_marauder/esp32_marauder.ino | 2 ++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/esp32_marauder/configs.h b/esp32_marauder/configs.h index 29320ea37..14269a288 100644 --- a/esp32_marauder/configs.h +++ b/esp32_marauder/configs.h @@ -144,6 +144,8 @@ //#define HAS_NEOPIXEL_LED //#define HAS_PWR_MGMT //#define HAS_SCREEN + // To support ElectronicCats Wi-Fi Marauder + //#define EC_ESP32_S3 #define HAS_GPS #ifndef WRITE_PACKETS_SERIAL #define HAS_SD @@ -197,9 +199,9 @@ //// FLIPPER ZERO HAT SETTINGS #ifdef FLIPPER_ZERO_HAT - //#ifdef MARAUDER_FLIPPER - // #define USE_FLIPPER_SD - //#endif + #ifdef MARAUDER_FLIPPER + #define USE_FLIPPER_SD + #endif #ifdef XIAO_ESP32_S3 #define USE_FLIPPER_SD @@ -788,6 +790,13 @@ #define XIAO_TX1 2 #endif #endif + + #ifdef EC_ESP32_S3 + #ifdef USE_FLIPPER_SD + #define EC_ESP32_S3_RX1 18 + #define EC_ESP32_S3_TX1 17 + #endif + #endif //// END BOARD PIN OVERRIDES //// EVIL PORTAL STUFF diff --git a/esp32_marauder/esp32_marauder.ino b/esp32_marauder/esp32_marauder.ino index 44b67a609..1ae748fdb 100644 --- a/esp32_marauder/esp32_marauder.ino +++ b/esp32_marauder/esp32_marauder.ino @@ -203,6 +203,8 @@ void setup() #ifdef XIAO_ESP32_S3 Serial1.begin(115200, SERIAL_8N1, XIAO_RX1, XIAO_TX1); + #elif EC_ESP32_S3 + Serial1.begin(115200, SERIAL_8N1, EC_ESP32_S3_RX1, EC_ESP32_S3_TX1); #else Serial1.begin(115200); #endif