Closed GoogleCodeExporter closed 9 years ago
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define digitalPinCount 70
#define analogPinCount 16
#define analogPinToDigitalPin(p) ((p < 16) ? (p) + 54 : -1)
#define digitalPinHasPWM(p) (((p) >= 2 && (p) <= 13) || ((p) >= 44 && (p)
< 46))
#else
#define digitalPinCount 20
#define analogPinCount 6 // fio, mini, nano have 8...
#define analogPinToDigitalPin(p) ((p < 6) ? (p) + 14 : -1)
#if defined(__AVR_ATmega8__)
#define digitalPinHasPWM(p) ((p) == 9 || (p) == 10 || (p) == 11)
#else
#define digitalPinHasPWM(p) ((p) == 3 || (p) == 5 || (p) == 6 || (p) == 9
|| (p) == 10 || (p) == 11)
#endif
Original comment by dmel...@gmail.com
on 7 Mar 2011 at 4:16
Should be: #define digitalPinHasPWM(p) (((p)>= 2&& (p)<= 13) || ((p)>=
44&& (p)<= 46))
Original comment by dmel...@gmail.com
on 8 Mar 2011 at 3:13
https://github.com/arduino/Arduino/commit/d338f22bde9b83796af4d627d085dfb25a0a40
5f
Original comment by dmel...@gmail.com
on 12 Aug 2011 at 10:28
Original issue reported on code.google.com by
dmel...@gmail.com
on 5 Mar 2011 at 4:27