Skip to content

Commit 2ad7d26

Browse files
Merge pull request #410 from hathach/master
update TOTAL_PINS for nrf52840 (64 pins max)
2 parents 533c89c + f9c978d commit 2ad7d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Boards.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ writePort(port, value, bitmask): Write an 8 bit port.
873873
// Adafruit Bluefruit nRF52 boards
874874
#elif defined(ARDUINO_NRF52_ADAFRUIT)
875875
#define TOTAL_ANALOG_PINS NUM_ANALOG_INPUTS
876-
#define TOTAL_PINS 32
876+
#define TOTAL_PINS NUM_DIGITAL_PINS
877877
#define VERSION_BLINK_PIN LED_BUILTIN
878878
#define IS_PIN_DIGITAL(p) ((p) >= 2 && (p) < TOTAL_PINS)
879879
#define IS_PIN_ANALOG(p) ((p) == PIN_A0 || (p) == PIN_A1 || (p) == PIN_A2 || (p) == PIN_A3 || \

0 commit comments

Comments
 (0)