Go Down

Topic: programming my teensyduino arcade buttonbox (Read 957 times) previous topic - next topic

Nick Gammon

I can't help thinking as I look at that code that an array, and a loop, would make everything much easier.

puikegast

thanks for your response, but an array and a loop don't say anything to me, i'm an absolute beginner and have zero experience in programming. Any idea where to find info on this?
dj, producer, vj, painter, manic creative individual

Nick Gammon

Quote
And i've done some programming ...


...

Quote
i'm an absolute beginner and have zero experience in programming


You lost me there.

puikegast

haha, i understand you're confused but most of the code is just simply copy/pasted, all i changed are the midi note numbers so that they correspond with the grid in a ableton live drumrack. But to be honest, i don't really have a clue what i'm doing.
dj, producer, vj, painter, manic creative individual

cyclegadget


Quote
although 2 buttons are having some issues


Add serial print statements to each of your if statements to show if your button was shown as being pushed.
Code: [Select]
if (buttonX.fallingEdge()) {

Code: [Select]
Serial.print("button x has been pressed ");

Go Up