Skip to content

Commit

Permalink
Added support for Battlebadge V2
Browse files Browse the repository at this point in the history
  • Loading branch information
balb0x committed Jun 13, 2024
1 parent 3b92084 commit 72dd7ac
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 16 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
## Getting Started
Download the [latest release](https://github.com/justcallmekoko/ESP32Marauder/releases/latest) of the firmware.

## Battlebadge V2
In this board the pin mapping has changed. In order to use the new board uncomment the line `#define MARAUDER_C1B3RT4CKS_V2` in the `config.h` file.

Check out the project [wiki](https://github.com/justcallmekoko/ESP32Marauder/wiki) for a full overview of the ESP32 Marauder
## Uploading the firmware
You can build yourself the code with the Arduino IDE or use a prebuilt release. To upload the prebuilt binaries you have 2 options:
Expand Down
50 changes: 34 additions & 16 deletions esp32_marauder/configs.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//#define ESP32_LDDB
//#define MARAUDER_DEV_BOARD_PRO
#define MARAUDER_C1B3RT4CKS
//#define MARAUDER_C1B3RT4CKS_V2

#define MARAUDER_VERSION "v0.10.1"

Expand All @@ -29,22 +30,39 @@
#endif

#ifdef MARAUDER_C1B3RT4CKS
#define L_BTN 35
#define C_BTN 25
#define U_BTN 19
#define R_BTN 32
#define D_BTN 27

#define LED_1_PIN 22
#define LED_2_PIN 21
#define LED_3_PIN 17
#define LED_4_PIN 16
#define LED_5_PIN 14
#define LED_6_PIN 12
#define LED_7_PIN 13
#define LED_8_PIN 15

#endif
#if MARAUDER_C1B3RT4CKS_V2
#define L_BTN 34
#define C_BTN 26
#define U_BTN 35
#define R_BTN 27
#define D_BTN 32

#define LED_1_PIN 22
#define LED_2_PIN 21
#define LED_3_PIN 17
#define LED_4_PIN 16
#define LED_5_PIN 15
#define LED_6_PIN 13
#define LED_7_PIN 12
#define LED_8_PIN 14
#else

#define L_BTN 35
#define C_BTN 25
#define U_BTN 19
#define R_BTN 32
#define D_BTN 27

#define LED_1_PIN 22
#define LED_2_PIN 21
#define LED_3_PIN 17
#define LED_4_PIN 16
#define LED_5_PIN 14
#define LED_6_PIN 12
#define LED_7_PIN 13
#define LED_8_PIN 15
#endif
#endif

//// END BUTTON DEFINITIONS

Expand Down

0 comments on commit 72dd7ac

Please sign in to comment.