Arduino Forum
Push Button as On/ Off Switch
Using Arduino
Programming Questions
TanHadron
May 26, 2013, 6:27am
7
This:
digitalRead(buttonpin);
should be:
button = digitalRead(buttonpin);
show post in topic
Related Topics
Topic
Replies
Views
Activity
use a push button as a toggle switch
Programming Questions
3
55390
May 5, 2021
Begginer trying to understand
Programming Questions
11
1722
May 5, 2021
Using a Momentary Switch as a toggle?
Programming Questions
33
6155
May 5, 2021
Logic help
Programming Questions
2
955
May 5, 2021
momentary pushbutton as toggle switch
Programming Questions
10
49210
May 5, 2021