Quick question:
If I have multiple momentary switches/buttons on four different inputs, how would I go about responding to only one button, even if others are pressed while the first is being pressed, i.e., button1 turns on LED1, button2 turns on LED2, etc., but LED2 can't be on while LED1 is on.
I'm looking for a direction to get me started here, rather than just the answer; learning is a process.
Multiple momentary switches - help with coding
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 11
- Joined: Wed Jan 18, 2012 1:02 am
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Multiple momentary switches - help with coding
Look at the '6 button' examples in the WaveShield tutorial.
-
- Posts: 11
- Joined: Wed Jan 18, 2012 1:02 am
Re: Multiple momentary switches - help with coding
Fantastic. Thank you for your help!
Please be positive and constructive with your questions and comments.