Interrupt on encoder pin change interrupt as well

This doubles the encoder resolution
Added missing function prototypes