added code to enable the rotary encoder (was not working without running the test application first)