So I am planning on making a program in arduino that takes user input from a computer and outputs it in Morse Code using an LED. First I'm going to make it in C++ using visual studios and without LEDs. The purpose of this is so that i have the logic down for when I make it with arduino. The C++ program will just output the messages in characters of dots and dashes. What I dont know though is if there is an arduino function that allows the user to input characters similar to how cin works in C++? (if that makes sense)
That ought to be possible. Radio amateurs on the 143MHz built senders and receivers doing this using 8080, Z80, M6800 40 years ago.
KingKamal2400:
is if there is an arduino function that allows the user to input characters
Yes.
Serial.read() reads one character from the serial port that most often is connected to a PC via USB serial emulation.
BTW Arduino uses C++ but very little of the RAM consuming standard C++ stuff.
I recall someone doing it on a mini-computer in the early 1970's.
Your challenge is to get the timing correct for a dot, a dash and a space, based on the words-per-minute you wish to send.
Paul