Rotary Encoder Shaft Timer

So, 12 posts into it and we have yet to see the code that you actually need help with. Things aren't exactly off to an auspicious start, are they?