Skip to content

Commit 80a8317

Browse files
committed
unor4: fix NUM_DIGITAL_PINS macro
The macro represents the number of pins that can be actively used "directly". Since A4/A5 are shared with SDA/SCL, the total number of unique gpios on UNO R4 headers is indeed 14+6 NUM_DIGITAL_PINS is currently unused in the core (better to use PINCOUNT arduino#107 for any safety check)
1 parent 5be4ea1 commit 80a8317

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

variants/MINIMA/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Pin count
66
// ----
77
#define PINS_COUNT (PINCOUNT_fn())
8-
#define NUM_DIGITAL_PINS (22u)
8+
#define NUM_DIGITAL_PINS (20u)
99
#define NUM_ANALOG_INPUTS (6u)
1010
#define NUM_ANALOG_OUTPUTS (1u)
1111

variants/UNOWIFIR4/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Pin count
66
// ----
77
#define PINS_COUNT (PINCOUNT_fn())
8-
#define NUM_DIGITAL_PINS (22u)
8+
#define NUM_DIGITAL_PINS (20u)
99
#define NUM_ANALOG_INPUTS (6u)
1010
#define NUM_ANALOG_OUTPUTS (1u)
1111

0 commit comments

Comments
 (0)