What Did Samuel Morse Invent?

He invented the Morse Code as we know it now. He received a patent for the telegraph in 1847 in Istanbul. He was also known as the leader of the anti-catholic movement in the mid-19th century.