Hi, i am trying to create a code that will allow me to select and store bytes into a vector.
I have a selection section that cycles through varies bytes of information with use of a track ball, this works fine, the problem occurs when i add the attachInterrupt() function, vectors and push.back. when i run the program and use the serial monitor, it displays 0. Is there another way of storing information or am i missing something basic? I have attached the code Im having problems with.
I have used for my vector(as a global variable) :