diff options
author | Kristian Sloth Lauszus <lauszus@gmail.com> | 2013-04-04 20:55:15 +0200 |
---|---|---|
committer | Kristian Sloth Lauszus <lauszus@gmail.com> | 2013-04-04 20:55:15 +0200 |
commit | ed42d9541213a5e37fe0151dee89868d5c502305 (patch) | |
tree | bbbe945a90fb177c114c392e0f3089be7622a283 /cores/arduino/wiring_analog.c | |
parent | f50c307be280dc6ece9e70c43b301c1db36291a0 (diff) |
Added support for all variants of Sanguino
Diffstat (limited to 'cores/arduino/wiring_analog.c')
-rw-r--r-- | cores/arduino/wiring_analog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/wiring_analog.c b/cores/arduino/wiring_analog.c index 3f19c7f..7ed0e4e 100644 --- a/cores/arduino/wiring_analog.c +++ b/cores/arduino/wiring_analog.c @@ -45,7 +45,7 @@ int analogRead(uint8_t pin) if (pin >= 54) pin -= 54; // allow for channel or pin numbers #elif defined(__AVR_ATmega32U4__) if (pin >= 18) pin -= 18; // allow for channel or pin numbers -#elif defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__) +#elif defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644__) || defined(__AVR_ATmega644A__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__) if (pin >= 24) pin -= 24; // allow for channel or pin numbers #elif defined(analogPinToChannel) && (defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)) pin = analogPinToChannel(pin); |