KurtE
Senior Member+
ANALOG READ on PINS 26/27
Looking at this issue: Looks like pins_arduino.h has to be changed and analog.c. pins_arduino.h I understand what has to be changed so that's not a problem. Don't understand this table in analog.c though - "pin to channel". It references pg482 in the RM but don't think that's correct page reference, but know to be wrong:
Updated pins_arduino.h and noticed that pins 24/25 weren't working either - was wrapped in an ifdef for 1052 only. Fixed that and got pins 24/25 working.
Note: Page 482 was from first version of the 1052 reference manual. I believe that this is now page: 2457 in the current 1062 manual.
Edit: I may be also missing it, but I think the analog.c code does need some work....
Like if I do analogRead(10);
I believe will fail likewise likewise 11-13 - Instead of mapping to 24-27...
Also Looks like we are not doing anything yet with ADC2 object?
Last edited: