From adc02386ec102693d64d79b77415b60f3a2cdc95 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Wed, 17 Jan 2007 08:16:43 +0000 Subject: [PATCH] Making NUM_ANALOG_IN_PINS conditional on the microcontroller so analog inputs 6 and 7 work on the ATmega168. --- targets/arduino/pins_arduino.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/targets/arduino/pins_arduino.c b/targets/arduino/pins_arduino.c index 849957902..b65b01777 100755 --- a/targets/arduino/pins_arduino.c +++ b/targets/arduino/pins_arduino.c @@ -50,7 +50,12 @@ #define NUM_DIGITAL_PINS 14 #define NUM_ANALOG_OUT_PINS 11 +#if defined(__AVR_ATmega168__) +#define NUM_ANALOG_IN_PINS 8 +#else #define NUM_ANALOG_IN_PINS 6 +#endif + #define NUM_PORTS 4 #define PB 2