Skip to content

Commit

Permalink
analogInputToDigitalPin should expect pin not adc channel now
Browse files Browse the repository at this point in the history
  • Loading branch information
p3p committed Aug 22, 2021
1 parent 6190ce6 commit 1021dc9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,7 @@ uint8_t analogReadResolution();
#define NUM_ANALOG_INPUTS 8

// Get the digital pin for an analog index
constexpr pin_t analogInputToDigitalPin(const int8_t channel) {
return LPC176x::pin_type::index_from_adc_channnel(channel);
}

constexpr pin_t analogInputToDigitalPin(const pin_t pin) { return pin; }
constexpr pin_t digitalPinToInterrupt(const pin_t pin) { return pin; }


Expand Down

0 comments on commit 1021dc9

Please sign in to comment.