Characters A-Z
, 0-1
, .?!@
and spaces are supported.
The sentence is (for now) defined in the morse.ino file.
It is processed in morseencrypt.cpp to be turned into a MorseSentence
object,
itself containing MorseWords
, each word containing MorseCharacters
,
and each character containing units that are dots or dash.
I'll use a laser to transmit the morse sequence, but a led perfectly fits for testing purposes.
The transmission is processed in morsetransmit.cpp by the MorseTransmission
class, using a MorseSentence
object.
The method MorseTransmission::loop() is non-blocking, and must be called in the main loop of the Arduino code.
The parameters of MorseTransmission are:
int timeUnit
: the duration of a morse dot.int dotOutputPin
: the pin turned on to display morse dots.int dashtOutputPin
: the pin turned on to display morse dashs (can be the same asdotOutputPin
).