-
Notifications
You must be signed in to change notification settings - Fork 981
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
Question on variant #727
Comments
Hi @r-pv Maybe it could be rewrote like that: |
Thanks for the reply, ups I got that wrong, I was thinking that the number was referring to the duplicates index and that was the reason they were written at last of the digitalPin array. |
The reason to duplicate is to have all analog pins contiguous in order to be able to loop on it: for (int i=0; i< NUM_ANALOG_INPUTS; i++) {
Serial.print(analogRead(i);
} If in your definition they already are contiguous hen no need to duplicate. |
awesome, mr @fpistm, I can fix my variants now. And sorry for keep taking your time. |
Welcome |
Hi, could you expand a bit the Add new board wiki with info about how to set properly the analogs?, because I'm having problems with my variant for the F030C8, when I tried to read PA0 ( analogRead(PA0) ) it really reads the PA3, for the moment I solve it by using analogRead(PA_0). So I was under the impression that only has to match the:
NUM_ANALOG_FIRST on the variant.h file with the duplicates on the digitalPin array on variant.cpp, but it seems that may be more to it, right?. Thanks.
Originally posted by @r-pv in #722 (comment)
The text was updated successfully, but these errors were encountered: