From 84b6f46e9a403e73fa0c3eaa5165ceb3073fe71f Mon Sep 17 00:00:00 2001 From: Lady Ada Date: Thu, 9 Jan 2020 22:28:14 -0500 Subject: [PATCH] add extra IRQ/light pins --- variants/clue_nrf52840/variant.cpp | 4 ++++ variants/clue_nrf52840/variant.h | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/variants/clue_nrf52840/variant.cpp b/variants/clue_nrf52840/variant.cpp index 63f0ede3..b2db14d8 100644 --- a/variants/clue_nrf52840/variant.cpp +++ b/variants/clue_nrf52840/variant.cpp @@ -77,6 +77,10 @@ const uint32_t g_ADigitalPinMap[] = 22, // D40 is P0.22 (QSPI Data 1) 23, // D41 is P0.23 (QSPI Data 2) 21, // D42 is P0.21 (QSPI Data 3) + + 10, // D43 is P0.10 white LED control + 9, // D44 is P0.09 APDS IRQ + 38, // D45 is P1.06 LSM6DS33 IRQ }; void initVariant() diff --git a/variants/clue_nrf52840/variant.h b/variants/clue_nrf52840/variant.h index 23954279..e5cc58eb 100644 --- a/variants/clue_nrf52840/variant.h +++ b/variants/clue_nrf52840/variant.h @@ -21,8 +21,6 @@ /** Master clock frequency */ #define VARIANT_MCK (64000000ul) - -//#define USE_LFXO // Board uses 32khz crystal for LF #define USE_LFRC // Board uses RC for LF /*---------------------------------------------------------------------------- @@ -37,8 +35,8 @@ extern "C" #endif // __cplusplus // Number of pins defined in PinDescription array -#define PINS_COUNT (43) -#define NUM_DIGITAL_PINS (43) +#define PINS_COUNT (46) +#define NUM_DIGITAL_PINS (46) #define NUM_ANALOG_INPUTS (8) #define NUM_ANALOG_OUTPUTS (0)