morseToChar

src.ZinckLib.morseToChar.morseToChar(val: str)

converts a given morse value into the cha value it would represent based on: https://content.instructables.com/F8N/JFGE/KCKIS3RK/F8NJFGEKCKIS3RK.jpg.

Parameters:

val (str) – The string to convert

Returns:

the converted morse code value or -1 if the provided morse code was not valid

Return type:

string