Fix default pin assignment

This commit is contained in:
Thomas Göttgens 2025-03-26 15:02:53 +01:00
parent 83d8e3cb09
commit ba81a8ad87

View File

@ -110,11 +110,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Define if screen should be mirrored left to right // Define if screen should be mirrored left to right
// #define SCREEN_MIRROR // #define SCREEN_MIRROR
// Define BUTTON_PIN to ensure button setup is always done
#ifndef BUTTON_PIN
#define BUTTON_PIN (-1)
#endif
// I2C Keyboards (M5Stack, RAK14004, T-Deck) // I2C Keyboards (M5Stack, RAK14004, T-Deck)
#define CARDKB_ADDR 0x5F #define CARDKB_ADDR 0x5F
#define TDECK_KB_ADDR 0x55 #define TDECK_KB_ADDR 0x55
@ -203,6 +198,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Step #1: offer chance for variant-specific defines */ /* Step #1: offer chance for variant-specific defines */
#include "variant.h" #include "variant.h"
// Define BUTTON_PIN to ensure button setup is always done
#ifndef BUTTON_PIN
#define BUTTON_PIN (-1)
#endif
#if defined(VEXT_ENABLE) && !defined(VEXT_ON_VALUE) #if defined(VEXT_ENABLE) && !defined(VEXT_ON_VALUE)
// Older variant.h files might not be defining this value, so stay with the old default // Older variant.h files might not be defining this value, so stay with the old default
#define VEXT_ON_VALUE LOW #define VEXT_ON_VALUE LOW