From a0fd83428f2c0c3945234a2ebc920e8cb70712f4 Mon Sep 17 00:00:00 2001 From: geeksville Date: Mon, 28 Sep 2020 13:10:27 -0700 Subject: [PATCH] eink use RESET button as regular button instead --- src/configuration.h | 4 ++++ variants/eink/variant.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/configuration.h b/src/configuration.h index 026bb1880..ad783d0d5 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 0c6f4eab3..6ab4e073b 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