Skip to content

Commit

Permalink
adapted write_packets_serial pins for esp32-wroom-32
Browse files Browse the repository at this point in the history
  • Loading branch information
coded-with-claws committed Nov 21, 2023
1 parent e1a6fe8 commit 9c2902e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 10 additions & 3 deletions esp32_marauder/configs.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@

//Indicates that it must redirect the stream with the captured packets to serial (1)
//If not defined, will write packages to SD card if supported
//#define WRITE_PACKETS_SERIAL
#define WRITE_PACKETS_SERIAL

//// BOARD TARGETS
//#define MARAUDER_M5STICKC
//#define MARAUDER_MINI
//#define MARAUDER_V4
#define MARAUDER_V6
#define MARAUDER_V4
//#define MARAUDER_V6
//#define MARAUDER_V6_1
//#define MARAUDER_KIT
//#define GENERIC_ESP32
//#define MARAUDER_FLIPPER
//#define ESP32_LDDB
//#define MARAUDER_DEV_BOARD_PRO
//#define XIAO_ESP32_S3
#define ESP32_WROOM32
//// END BOARD TARGETS

#define MARAUDER_VERSION "v0.13.5"
Expand Down Expand Up @@ -761,6 +762,12 @@
#define XIAO_TX1 2
#endif
#endif
#ifdef ESP32_WROOM32
#ifdef WRITE_PACKETS_SERIAL
#define WROOM32_RX1 16
#define WROOM32_TX1 17
#endif
#endif
//// END BOARD PIN OVERRIDES

//// EVIL PORTAL STUFF
Expand Down
2 changes: 2 additions & 0 deletions esp32_marauder/esp32_marauder.ino
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ void setup()

#ifdef XIAO_ESP32_S3
Serial1.begin(115200, SERIAL_8N1, XIAO_RX1, XIAO_TX1);
#elif defined(ESP32_WROOM32)
Serial1.begin(115200, SERIAL_8N1, WROOM32_RX1, WROOM32_TX1);
#else
Serial1.begin(115200);
#endif
Expand Down

0 comments on commit 9c2902e

Please sign in to comment.