Skip to content

Arduino Nano Every in ATMEGA328 compability mode - A7 works as A6 and vice versa. #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
elektros230 opened this issue Jul 10, 2019 · 2 comments

Comments

@elektros230
Copy link

In Arduino nano every seems to be changed pinouts of PIN_A7 and PIN_A6 in ATMEGA328 compability mode.
A7 works as A6 and vice versa.

@elektros230
Copy link
Author

Now I solve that bug by adding compiler directive:

#ifdef FIX_BUG_NANO_EVERY
#define outVoltagePin PIN_A7 //A7 as real A6 pin output
#else
#define outVoltagePin PIN_A6
#endif

@facchinm
Copy link
Member

Hi @elektros230 , thanks for reporting! I fixed the issue in 3737f45 , it will be included in upcoming core 1.8.3 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants