Issues Reading an encoder

Have you tested the DUE's input pins with pushbuttons to see if they are working? Do you have another MCU board to test the encoder?