Skip to content

Add bitToggle macro to complement bitSet etc #31

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

Merged
merged 2 commits into from
Sep 16, 2019
Merged

Add bitToggle macro to complement bitSet etc #31

merged 2 commits into from
Sep 16, 2019

Conversation

jamadagni
Copy link
Contributor

Currently there are only bitSet, bitClear and bitWrite to write to a bitfield. It is also useful to toggle a bit. Currently toggling would involve a combination of bitRead and bitWrite but this is not really necessary. Hence my humble submission.

Thank you for Arduino (which I'm using via KeyboardIO)! 💐

@aentinger aentinger merged commit 5ed329e into arduino:master Sep 16, 2019
@jamadagni jamadagni deleted the patch-1 branch September 16, 2019 15:14
facchinm pushed a commit to arduino/ArduinoCore-API that referenced this pull request Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants