Code for the encoder processor on the Sprocks keypad.