Skip to content

Commit 6190ce6

Browse files
committed
make some Arduino constants available to preprocessor
1 parent 843a428 commit 6190ce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/Arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ void analogReference(uint8_t);
121121
void analogReadResolution(uint8_t resolution);
122122
uint8_t analogReadResolution();
123123

124-
constexpr uint16_t NUM_DIGITAL_PINS = 160;
125-
constexpr uint16_t NUM_ANALOG_INPUTS = LPC176x::analog_input_count;
124+
#define NUM_DIGITAL_PINS 160
125+
#define NUM_ANALOG_INPUTS 8
126126

127127
// Get the digital pin for an analog index
128128
constexpr pin_t analogInputToDigitalPin(const int8_t channel) {

0 commit comments

Comments
 (0)