mirror of https://github.com/noisymime/Arduino.git
Making NUM_ANALOG_IN_PINS conditional on the microcontroller so analog inputs 6 and 7 work on the ATmega168.
This commit is contained in:
parent
221b6348fe
commit
adc02386ec
|
@ -50,7 +50,12 @@
|
||||||
|
|
||||||
#define NUM_DIGITAL_PINS 14
|
#define NUM_DIGITAL_PINS 14
|
||||||
#define NUM_ANALOG_OUT_PINS 11
|
#define NUM_ANALOG_OUT_PINS 11
|
||||||
|
#if defined(__AVR_ATmega168__)
|
||||||
|
#define NUM_ANALOG_IN_PINS 8
|
||||||
|
#else
|
||||||
#define NUM_ANALOG_IN_PINS 6
|
#define NUM_ANALOG_IN_PINS 6
|
||||||
|
#endif
|
||||||
|
|
||||||
#define NUM_PORTS 4
|
#define NUM_PORTS 4
|
||||||
|
|
||||||
#define PB 2
|
#define PB 2
|
||||||
|
|
Loading…
Reference in New Issue