Morse code is a method of encoding words that was invented in the 19th Century as a way of transmitting messages over long distances. This was before the era of telephones and way before smartphones!