Skip to content

Added digitalWrite(pin, TOGGLE) #111

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

Closed
wants to merge 1 commit into from
Closed

Added digitalWrite(pin, TOGGLE) #111

wants to merge 1 commit into from

Conversation

Lauszus
Copy link
Contributor

@Lauszus Lauszus commented Aug 17, 2012

This is a basic change, but one I have wanted for a long time.
It's pretty basic - it let's the user toogle the pin.

Previously you had to do something like:
digitalWrite(pin, !digitalRead(pin));

This commit will allow you to simply do:
digitalWrite(pin, TOGGLE);

@Lauszus
Copy link
Contributor Author

Lauszus commented Jul 3, 2013

Any change this will ever get merged?

@Lauszus Lauszus closed this Oct 15, 2013
@per1234 per1234 added Component: Core Related to the code for the standard Arduino API feature request A request to make an enhancement (not a bug fix) Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: Core Related to the code for the standard Arduino API feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants