Skip to content

Buttons pressed in combination #13

Answered by rlogiacco
stig11 asked this question in Q&A
Discussion options

You must be logged in to vote

First of all, there's nothing preventing you to detect two buttons on the same pin: try this example circuit to see you can actually distinguish between the 4 possible combinations of 2 buttons, you just have to pick the right resistors so to leave enough room to account for any fluctuation.

Obviously this gets exponentially more complicated as buttons get added, but I still believe this is the easiest route, just defining an additional virtual button matching the desired voltage,

Sure, you can add any additional check in the button function, so what you are describing is totally possible: store the status of the shift button in a global variable and change the normal buttons behaviour de…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rlogiacco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #13 on December 17, 2020 12:58.