From 85b814ed9e6a42fd3d983dd01dcb017c54b78aa2 Mon Sep 17 00:00:00 2001 From: Devanshi15 <28269109+Devanshi15@users.noreply.github.com> Date: Wed, 6 Jun 2018 15:39:26 +0530 Subject: [PATCH 1/2] Update variant.h --- variants/RedBearLab_nRF51822/variant.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/variants/RedBearLab_nRF51822/variant.h b/variants/RedBearLab_nRF51822/variant.h index 3cceae5c..de939b31 100644 --- a/variants/RedBearLab_nRF51822/variant.h +++ b/variants/RedBearLab_nRF51822/variant.h @@ -72,8 +72,8 @@ static const uint8_t A5 = PIN_A5 ; #define SPI_INTERFACES_COUNT 1 #define PIN_SPI_MISO (22) -#define PIN_SPI_MOSI (24) -#define PIN_SPI_SCK (23) +#define PIN_SPI_MOSI (21) +#define PIN_SPI_SCK (20) static const uint8_t SS = 10 ; static const uint8_t MOSI = PIN_SPI_MOSI ; @@ -85,8 +85,8 @@ static const uint8_t SCK = PIN_SPI_SCK ; */ #define WIRE_INTERFACES_COUNT 1 -#define PIN_WIRE_SDA (20u) -#define PIN_WIRE_SCL (21u) +//#define PIN_WIRE_SDA (20u) +//#define PIN_WIRE_SCL (21u) static const uint8_t SDA = PIN_WIRE_SDA; static const uint8_t SCL = PIN_WIRE_SCL; From 3ff11f1c07eac9fc2e15f92d83a84ee6f4d68a9d Mon Sep 17 00:00:00 2001 From: Devanshi15 <28269109+Devanshi15@users.noreply.github.com> Date: Wed, 6 Jun 2018 15:46:30 +0530 Subject: [PATCH 2/2] Update variant.cpp --- variants/RedBearLab_nRF51822/variant.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/variants/RedBearLab_nRF51822/variant.cpp b/variants/RedBearLab_nRF51822/variant.cpp index 9a718bd9..46bdaa86 100644 --- a/variants/RedBearLab_nRF51822/variant.cpp +++ b/variants/RedBearLab_nRF51822/variant.cpp @@ -25,7 +25,7 @@ const uint32_t g_ADigitalPinMap[] = { 9, 10, 8, - 21, + // 21, 23, 16, 17, @@ -52,8 +52,8 @@ const uint32_t g_ADigitalPinMap[] = { // MISO, SCK, MOSI 22, - 25, - 30, + 20, + 21, // AREF