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

pinMode does not handle INPUT_PULLDOWN mode #37

Open
kursatu opened this issue Mar 19, 2018 · 0 comments
Open

pinMode does not handle INPUT_PULLDOWN mode #37

kursatu opened this issue Mar 19, 2018 · 0 comments

Comments

@kursatu
Copy link

kursatu commented Mar 19, 2018

This is an NRF5 specific pulldown mode, which is very useful to detect
tri-state (low,high, high-impedence) output from chips (eg. MCP73831)

If you add these lines in wiring_digital.cpp within the pinMode functions switch statement, it fixes this problem.
case INPUT_PULLDOWN :
direction = PIN_INPUT;
pin_mode = PullDown;
break;

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

1 participant