complete the demodulation with one LED

first commit,include algorithms