This doesn't work. Keeps printing "-1" regardless of encoder position.
P.S. I did add the missing semicolon on line 9 and fixed the variable name to pulseCopy to be consistent with the variable call.
This doesn't work. Keeps printing "-1" regardless of encoder position.
P.S. I did add the missing semicolon on line 9 and fixed the variable name to pulseCopy to be consistent with the variable call.