Arduino Due

Where can I find some examples of programs for Arduino Due that receives signals from an Absolute multi turn rotary encoder and a sends signals to a dc brushed motor which is powered by a motor driver. The program has to make the motor shaft rotate in several directions and very slowly considering that this will be used as an exoskeleton.