Another thing I'm trying to do:
I setup rotary encoder and a button on the arduino and I'm using the rotary encoder to change the track which work just fine. I would like that the button will act as a pause play button.
the data I'm when pressing the button is transient between 1 >> 0 so I need to make toggling between two state of constant 1 and constant o (meaning 1 press will output 1 and another press will output 0)
I try to use [cycle 2] to toggling between states but it did not worked well. Any recommendations?