diff --git a/README.md b/README.md index a11691102..4d635d594 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/esp32_marauder/configs.h b/esp32_marauder/configs.h index f44dbeed0..76969dc9b 100644 --- a/esp32_marauder/configs.h +++ b/esp32_marauder/configs.h @@ -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" @@ -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