Issues Reading an encoder

Can't say since I'm not familiar with non AVR Arduinos but I did expect my little test code to work.