<human>:  What year was morse code invented?
<bot>: Morse code was invented in 1836 by Samuel Morse. It was used to transmit messages over telegraph wires. It was used to send messages between ships and shore stations.