mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Making NUM_ANALOG_IN_PINS conditional on the microcontroller so analog inputs 6 and 7 work on the ATmega168.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user