Added digitalEncoder.cpp