Morse code was invented by Samuel Morse in 1836, and became widely used after the advent of the electric telegraph. According to popular legend, the first message ever sent was 'What hath God Wrought?', which translates as: