Fixed encoder_driver to work as built-in device. Builds and runs.
Merge pull request #2 from proan/encoder

Working encoder driver