SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By PrinceCapulet
#195153
I'm building a controller for an art show. There are 21 arcade buttons, connected to pins 0-20 on a teensy 3.5 board. Each pin is assigned to a letter, going in order through the alphabet: 0 - a, 1 - b, 2 - c.... 20 - u. Using Java in Processing, we have each letter performing different functions, pressing two buttons will also have a different function. When tested without the Teensy controller, the two key presses works perfectly, but when we plugged the controller in, it doesn't. It behaves as if the two buttons were pushed at separate times, and not together.
Any feedback is appreciated, thank you!
User avatar
By DanV
#195166
Here's the feedback:
Without seeing your code, there is no way to tell if you have a code issue.
How do you test 2-button press working perfectly without the controller connected?
Your code would have to say
if 0-press and 1-press then x
else {
if 0-press then a
if 1-press then b
}