Closed
Description
For the ATmega1284/P and 644/A/P/PA MCUs, analogRead() uses a hardcoded algorithm that causes it to incorrectly map analog pin numbers to ADC channels for certain popular boards including some of those defined in maniacbug's mighty-1284p core.
Calling analogPinToChannel(), similar to what is already in place for the ATtinyX5 MCUs, would address this issue and allow better flexibility for future boards that may be developed.
Pull request to follow.
Metadata
Metadata
Assignees
Labels
No labels