Hi guys!!
noob here (started with this fantastic tool few weeks ago!) and as I'm quite young (55 in June
)I'm in the "I want it all, I want it now" status :), so while trying to understand the most of it, I've stated with "cut&paste" technic (I know I shouldn't... but .... I do learn something reading other codes).
Ok my problem is that I need to control buttons state before the "switching code", and this is done, then have that states put to 0, and wait for a new state, otherwise the "switching code" case is always executed, I need it to stay there.
TBH I'm quite sure I've gone lost in the "if"s nests..
What the code does
one single button could have 3 states, 1 (click) 2 (double click) 3 (hold), and it gets multiplies by 10.
then 6 buttons could, then pushed states become 1 and get added to the above. Then the switching part do something based on sum of buttons values (ie single button 2, and 3rd switch pressed, get the sum is 23, and so on.
The main problem is that I need to get rid of that value(23) for the whole time until another button is pressed, them sum it again ecc.
I've succeeded to control the single switch values, but cannot get rid of the summed value.
If I get rid of the switch code, I can have on monitor the status of the single button and of which of the 6 buttons has been pressed
(sorry for a so long post....)
so here's my code, didn't put all the variables and void setup to keep the code short, but I will if needed
(please don't sniff at it, it's almost all cut&paste of other code ![]()
code is an attachment, being quite long...
A huge thanks to everybody here!!
Ciao
Armando
Q2 looper concept.txt (7.37 KB)