Simple program written for Raspberry that allows translating a text into Morse code.
The text is translated in the form of light signals with the use of a LED connected to Raspberry.
The default circuit provides a LED connection with pin number 17 and any GDR pin of a Raspberry.
Use a 330K resistor to not damage the LED as the scheme below: