He was a businessman and a presidential portraitist. But he is best remembered as co-creator of the Morse code.