Arduino Forum
Switching an Output to opposite to last status
Projects
Programming
Grumpy_Mike
August 25, 2012, 6:03am
3
You can read outputs, so you could do.
digitalWrite(13, !digitalRead(13) );
show post in topic
Related topics
Topic
Replies
Views
Activity
Fastest Digital Write
General Guidance
17
6101
May 5, 2021
how fast can the output pins switch
Frequently-Asked Questions
3
2049
May 6, 2021
Simple Direct Port Manipulation Question
Programming
24
8300
May 5, 2021
PWM Pin Out
Deutsch
9
1955
May 6, 2021
Why won't this code toggle an output and hold?
Syntax & Programs
17
4993
May 6, 2021