diff --git a/src/configuration.h b/src/configuration.h index 026bb188..ad783d0d 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -77,6 +77,10 @@ along with this program. If not, see . #define BUTTON_PIN PIN_BUTTON1 #endif +#ifdef PIN_BUTTON2 +#define BUTTON_PIN_ALT PIN_BUTTON2 +#endif + // FIXME, use variant.h defs for all of this!!! (even on the ESP32 targets) #elif defined(CubeCell_BoardPlus) diff --git a/variants/eink/variant.h b/variants/eink/variant.h index 0c6f4eab..6ab4e073 100644 --- a/variants/eink/variant.h +++ b/variants/eink/variant.h @@ -87,6 +87,7 @@ extern "C" { * Buttons */ #define PIN_BUTTON1 (32 + 10) +#define PIN_BUTTON2 (0 + 18) // 0.18 is labeled on the board as RESET but we configure it in the bootloader as a regular GPIO /* * Analog pins