Optical Shaft Encoder Values

Currently, in the debugger window, the optical shaft encoder is reading only 2 numbers, 1 and 0. When I tried switching ports the values changed to -1 and -2. I have the two wires right next to each other and nothing else. Is the encoder supposed to only give 2 values?

Means the cortex is only reading values from 1 of the 2 wires. Might mean the wire is broken or that you just need to shift the wires 1 spot over.

Ah, got it now! Thanks @tabor473