Description

Morse code, also known as Morse cipher, allows data transmission through short pulses and long pulses.
In fact, the pulses for data transmission can be sound signals, light signals, visual signals, analog signals, or even digital signals.
It was invented by American Alfred Vail in 1837 while he was assisting Samuel Morse in inventing the Morse telegraph machine.

Morse code is an early form of digital communication, but unlike modern binary codes that use only 0 and 1, it consists of five elements: dot, dash, short pause between each character, medium pause between each word, and long pause between each sentence.
Note:
  • Only content within the ASCII encoding range of 127 characters can be used, without distinguishing between uppercase and lowercase letters.
  • Unicode is not supported, but you can make modifications to support Unicode characters if needed.
Morse Code Table for 26 Letters:
Char Code Char Code Char Code Char Code
A .- B -... C -.-. D -..
E . F ..-. G --. H ....
I .. J .--- K -.- L .-..
M -- N -. O --- P .--.
Q --.- R .-. S ... T -
U ..- V ...- W .-- X -..-
Y -.-- Z --..        
Morse Code Table for Numbers:
Char Code Char Code Char Code Char Code
0 ----- 1 .---- 2 ..--- 3 ...--
4 ....- 5 ..... 6 -.... 7 --...
8 ---.. 9 ----.        
Morse Code Table for Punctuation:
Char Code Char Code Char Code Char Code
. .-.-.- : ---... , --..-- ; -.-.-.
? ..--.. = -...- ' .----. / -..-.
! -.-.-- - -....- _ ..--.- " .-..-.
( -.--. ) -.--.- $ ...-..- & ....
@ .--.-.            

0 Comments

0 / 300