Simple program, that read from interrupt generated by connecting the selected pin to a rotary dial. Use init_3.4.sh to enable the pin in the kernel, and then run "rotor". Please note that this program is written for linux-sunxi kernel.