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 b2cf1b1 + 3c70733 commit 9b2e698Copy full SHA for 9b2e698
variants/grand_central_m4/variant.h
@@ -61,7 +61,7 @@ extern "C"
61
#define NUM_DIGITAL_PINS (53u)
62
#define NUM_ANALOG_INPUTS (16u)
63
#define NUM_ANALOG_OUTPUTS (2u)
64
-#define analogInputToDigitalPin(p) ((p < 6u) ? (p) + 14u : -1)
+#define analogInputToDigitalPin(p) ((p < 8) ? 67 + (p) : (p < 16) ? 54 + (p) - 8 : (p < 18) ? 12 + (p) - 16 : (p == 18) ? 9 : -1)
65
66
#define digitalPinToPort(P) ( &(PORT->Group[g_APinDescription[P].ulPort]) )
67
#define digitalPinToBitMask(P) ( 1 << g_APinDescription[P].ulPin )
0 commit comments