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

AP_Scripting: added pullup or pulldown to pinMode() #27065

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pkocmoud
Copy link
Contributor

This is a non-breaking change for existing scripts.
The pin_types are:
0 - input (floating)
1 - output
2 - input (pullup enabled)
3 - input (pulldown enabled)

This is a non-breaking change for existing scripts. The pin_types are:
0 - input (floating)
1 - output
2 - input (pullup enabled)
3 - input (pulldown enabled)
Copy link
Contributor

@magicrub magicrub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably a correct non breaking change but it just screams enum.

@pkocmoud
Copy link
Contributor Author

Thanks @magicrub, I also considered allowing for the user a choice of OUTPUT types: Push Pull and Open Drain. But I suspected some issue occurred in the past which necessitated the Lines 240-248. In the end my goal was to change as little as possible.

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

Successfully merging this pull request may close these issues.

None yet

2 participants