This library will convert a string of letters and numbers (no symbols, just A-Z and 0-9) to morse code, and play the tones via the “tone();” command.
Call the function:
morse(“Text!”, pin);
You just need to give it a string, and a pin to play the tone on.