mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-21 12:38:34 +00:00
Move some global pin defines into configuration.h
This commit is contained in:
parent
521cb919fa
commit
624f2369c2
@ -171,6 +171,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#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 <http://www.gnu.org/licenses/>.
|
||||
#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
|
||||
// -----------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user