Skip to content

Commit 9f1cb2a

Browse files
committed
add PIN_NEOPIXEL_POWER as D34 for Feather nRF52840 Express RevE. Also set it as output, and write to HIGH as default
1 parent addf2e0 commit 9f1cb2a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

variants/feather_nrf52840_express/variant.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ const uint32_t g_ADigitalPinMap[] =
7171
// The remaining NFC pin
7272
9, // D33 is P0.09 (NFC1, exposed only via test point on bottom of board)
7373

74-
// Thus, there are 34 defined pins
74+
32+14, // D34 is P1.14
75+
76+
// Thus, there are 35 defined pins
7577

7678
// The remaining pins are not usable:
7779
//
@@ -92,7 +94,6 @@ const uint32_t g_ADigitalPinMap[] =
9294
// 43, // P1.11 is not connected per schematic
9395
// 44, // P1.12 is not connected per schematic
9496
// 45, // P1.13 is not connected per schematic
95-
// 46, // P1.14 is not connected per schematic
9697
};
9798

9899
void initVariant()
@@ -103,5 +104,8 @@ void initVariant()
103104

104105
pinMode(PIN_LED2, OUTPUT);
105106
ledOff(PIN_LED2);
107+
108+
pinMode(PIN_NEOPIXEL_POWER, OUTPUT);
109+
digitalWrite(PIN_NEOPIXEL_POWER, HIGH);
106110
}
107111

variants/feather_nrf52840_express/variant.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ extern "C"
3737
#endif // __cplusplus
3838

3939
// Number of pins defined in PinDescription array
40-
#define PINS_COUNT (34)
41-
#define NUM_DIGITAL_PINS (34)
40+
#define PINS_COUNT (35)
41+
#define NUM_DIGITAL_PINS (35)
4242
#define NUM_ANALOG_INPUTS (6) // A6 is used for battery, A7 is analog reference
4343
#define NUM_ANALOG_OUTPUTS (0)
4444

4545
// LEDs
4646
#define PIN_LED1 (3)
4747
#define PIN_LED2 (4)
48+
#define PIN_NEOPIXEL_POWER (34)
4849
#define PIN_NEOPIXEL (8)
4950
#define NEOPIXEL_NUM 1
5051

0 commit comments

Comments
 (0)