I am planning on making a library involving Morse Code, and I'm not sure how to approach my problem. I want to have some syntax, probably something like "Morse.tap(word to send). My problem is that I am not sure how to go about this. My main objective is to have the word in the () to be plain text or a string. I thing I need to ready individual characters from the string. I have very little experience with libraries, and all help is much appreciated.
You should always try to stand on the shoulders of others before writing something yourself, if for no other reason than to learn. The Morse translation has been done numerous times. I Googled C source code to translate English into Morse Code and got 74,000 hits. My guess is one of those would help you. Also, there are three projects in the Arduino Projects for Amateur Radio book that would likely be helpful. Amazon.com let's you read some pages from a book...give that a try.