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.
1 parent c1bdae7 commit ff4e274Copy full SHA for ff4e274
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