We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d44eee2 commit 8e82103Copy full SHA for 8e82103
variants/arduino_due_x/variant.h
@@ -56,9 +56,9 @@ extern "C"{
56
57
// Number of pins defined in PinDescription array
58
#define PINS_COUNT (79u)
59
-#define NUM_DIGITAL_PINS (54u)
+#define NUM_DIGITAL_PINS (66u)
60
#define NUM_ANALOG_INPUTS (12u)
61
-#define analogInputToDigitalPin(p) ((p < NUM_ANALOG_INPUTS) ? (p) + NUM_DIGITAL_PINS : -1)
+#define analogInputToDigitalPin(p) ((p < 12u) ? (p) + 54u : -1)
62
63
#define digitalPinToPort(P) ( g_APinDescription[P].pPort )
64
#define digitalPinToBitMask(P) ( g_APinDescription[P].ulPin )
0 commit comments