We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent e9ac544 commit c2c3f46Copy full SHA for c2c3f46
hardware/arduino/sam/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