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

Problem in read digital pins #5

Open
DBattisti opened this issue Oct 10, 2018 · 1 comment
Open

Problem in read digital pins #5

DBattisti opened this issue Oct 10, 2018 · 1 comment

Comments

@DBattisti
Copy link

In the example simple.cpp the reading of the digital port is not working. When I run the example the analog ports A0 and A1 are reported but the digital pin 2 are not. Apart from this problem, how to map the ports to pins? For example, if I want pin 7 to be reported which port I should pass as argument to "reportDigital (port, enable)".

@santicastro
Copy link

In the example simple.cpp the reading of the digital port is not working. When I run the example the analog ports A0 and A1 are reported but the digital pin 2 are not. Apart from this problem, how to map the ports to pins? For example, if I want pin 7 to be reported which port I should pass as argument to "reportDigital (port, enable)".

I have the same problem, I can't make digitalRead work in Ardduino Mega

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