Skip to content

Added a function to allow inverting the output from a GPIO pin #3039

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

invectorlabs
Copy link

This allows a user to simply by calling the setPinInvert function to invert the output of a GPIO pin instead of rewriting existing code.... if required =) I am not sure if the function declaration is correctly positioned though so please advice.

…t having to rewrite large chunks of code. Not sure if the function declaration is properly located tho.
@earlephilhower
Copy link
Owner

Thanks, but could we add the declaration to Arduino.h like the other simple additions that don't need the Arduino-Core API headers to be changed (I try and sync them up every now and then).

Also, a line or two in the docs about this and an example (something simple like blink.ino but with toggling the invert pin) would be much appreciated. It's non-standard so users won't be able to discover it otherwise...

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.

3 participants