I miss A0-An definitions for analog pins.
When i want to set analog pins to in/out or doing digital write/read i have to
calculate the pin number, so i added some definitions to arduino_lit.h, i don't
know if this is the proper way/file to do it, but works for me:
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define A0 54
#define A1 55
#define A2 56
#define A3 57
#define A4 58
#define A5 59
#define A6 60
#define A7 61
#define A8 62
#define A9 63
#define A10 64
#define A11 65
#define A12 66
#define A13 67
#define A14 68
#define A15 69
#else
#define A0 14
#define A1 15
#define A2 16
#define A3 17
#define A4 18
#define A5 19
#define A6 20
#define A7 21
#endif
Original issue reported on code.google.com by santig...@gmail.com on 13 Apr 2012 at 1:24
Original issue reported on code.google.com by
santig...@gmail.com
on 13 Apr 2012 at 1:24