File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ enum {
50
50
// Arduino analog pins
51
51
// Analog pins must be contiguous to be able to loop on each value
52
52
#define MAX_ANALOG_INPUTS 20
53
- _Static_assert (NUM_ANALOG_INPUTS <= MAX_ANALOG_INPUTS , "Core NUM_ANALOG_INPUTS limited to MAX_ANALOG_INPUTS" );
53
+ _Static_assert (NUM_ANALOG_INPUTS <= MAX_ANALOG_INPUTS ,
54
+ "Core NUM_ANALOG_INPUTS limited to MAX_ANALOG_INPUTS" );
55
+ _Static_assert (NUM_ANALOG_FIRST >= NUM_ANALOG_INPUTS ,
56
+ "First analog pin value (A0) must be greater than or equal to NUM_ANALOG_INPUTS" );
54
57
55
58
// Defined for backward compatibility with Firmata which unfortunately use it
56
59
#define AEND (NUM_ANALOG_FIRST+NUM_ANALOG_INPUTS)
Original file line number Diff line number Diff line change 75
75
// !!!
76
76
#define NUM_ANALOG_INPUTS 0
77
77
// Define digital pin number of the first analog input (i.e. which digital pin is A0)
78
+ // First analog pin value (A0) must be greater than or equal to NUM_ANALOG_INPUTS
78
79
#define NUM_ANALOG_FIRST 0
79
80
80
81
// Below ADC, DAC and PWM definitions already done in the core
You can’t perform that action at this time.
0 commit comments