Skip to content
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

PINF question (error) #60

Open
caslor opened this issue Apr 26, 2019 · 2 comments
Open

PINF question (error) #60

caslor opened this issue Apr 26, 2019 · 2 comments

Comments

@caslor
Copy link

caslor commented Apr 26, 2019

Hi
i want to experiment with a arduino pro mini (or nano) with this code
so when i am using the dcServoProMicro.ino to compile i am getting this error :

void countStep(){ if (PINF&B10000000) target1--;else target1++; } // pin A0 represents direction == PF7 en Pro Micro ^ exit status 1 'PINF' was not declared in this scope

Ok this is because on arduino pro mini the pin ports registers are different

for AO pin (PINF in ProMicro) in ProMini would be PINC

so when i change that to the code i can compile without any arror

my question has to do if it is worth it to try that code with an arduino pro mini for low speed motor

@misan
Copy link
Owner

misan commented Apr 26, 2019 via email

@caslor
Copy link
Author

caslor commented Apr 26, 2019

Thanks for the quick reply
so will make my try with the dcservo.ino

thanks again for the suggestion... have a nice day :)

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