diff --git a/src/configuration.h b/src/configuration.h
index 114efb0f6..0ba9437c6 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -171,6 +171,7 @@ along with this program. If not, see .
#define BMX160_ADDR 0x69
#define ICM20948_ADDR 0x69
#define ICM20948_ADDR_ALT 0x68
+#define BMM150_ADDR 0x13
// -----------------------------------------------------------------------------
// LED
@@ -323,6 +324,20 @@ along with this program. If not, see .
#define HAS_RGB_LED
#endif
+// default mapping of pins
+#if defined(PIN_BUTTON2) && !defined(CANCEL_BUTTON_PIN)
+#define ALT_BUTTON_PIN PIN_BUTTON2
+#endif
+#if defined ALT_BUTTON_PIN
+
+#ifndef ALT_BUTTON_ACTIVE_LOW
+#define ALT_BUTTON_ACTIVE_LOW true
+#endif
+#ifndef ALT_BUTTON_ACTIVE_PULLUP
+#define ALT_BUTTON_ACTIVE_PULLUP true
+#endif
+#endif
+
// -----------------------------------------------------------------------------
// Global switches to turn off features for a minimized build
// -----------------------------------------------------------------------------
diff --git a/src/platform/nrf52/architecture.h b/src/platform/nrf52/architecture.h
index 99e5e2a3d..684d20e84 100644
--- a/src/platform/nrf52/architecture.h
+++ b/src/platform/nrf52/architecture.h
@@ -121,19 +121,6 @@
#define BUTTON_PIN PIN_BUTTON1
#endif
-#if defined(PIN_BUTTON2) && !defined(CANCEL_BUTTON_PIN)
-#define ALT_BUTTON_PIN PIN_BUTTON2
-#endif
-#if defined ALT_BUTTON_PIN
-
-#ifndef ALT_BUTTON_ACTIVE_LOW
-#define ALT_BUTTON_ACTIVE_LOW true
-#endif
-#ifndef ALT_BUTTON_ACTIVE_PULLUP
-#define ALT_BUTTON_ACTIVE_PULLUP true
-#endif
-#endif
-
#ifdef PIN_BUTTON_TOUCH
#define BUTTON_PIN_TOUCH PIN_BUTTON_TOUCH
#endif