You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: