Shifted code and morse code implementation