Making NUM_ANALOG_IN_PINS conditional on the microcontroller so analog inputs 6 and 7 work on the ATmega168.

This commit is contained in:
David A. Mellis 2007-01-17 08:16:43 +00:00
parent 221b6348fe
commit adc02386ec
1 changed files with 5 additions and 0 deletions

View File

@ -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