We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9795f2d + aabdb85 commit e9ac544Copy full SHA for e9ac544
hardware/arduino/sam/variants/arduino_due_x/variant.h
@@ -58,6 +58,7 @@ extern "C"{
58
#define PINS_COUNT (79u)
59
#define NUM_DIGITAL_PINS (54u)
60
#define NUM_ANALOG_INPUTS (12u)
61
+#define analogInputToDigitalPin(p) ((p < NUM_ANALOG_INPUTS) ? (p) + NUM_DIGITAL_PINS : -1)
62
63
#define digitalPinToPort(P) ( g_APinDescription[P].pPort )
64
#define digitalPinToBitMask(P) ( g_APinDescription[P].ulPin )
0 commit comments