getDuration()
getFrequency()
getPin() - Get the current settings of the duration, frequency and digital output pin.

string(str, max, txt) - Create a string with dots and dashes for the given input text.
str - The string buffer where the morse code dots and dashes are returned. The function also returns a pointer to this string as a function return value.
max - The maximum length of the str buffer. The conversation stops when the buffer is filled.
txt - The actual text that shall be converted to morse code.

wait(type) - Generates a pause with the correct duration for the given wait type.

write(ch) - Internal low level function, not to be called.
Use standard Print methods like print() and println() to generate morse code on the defined digital output pin.

Private variables and methods:

morseTable - Table with all the morse codes.

_pin
_duration
_frequency - Keeps the current settings.

findStartOfMorseCode(code) - Finds the start of the given morse code.

getMorseCode(ch) - Finds the morse code for the given character.

trace(...) - Internal trace function.

Download

ND no

Product

Language

Release

Title

Download

Files

Size

Original

Type

292012.A00

Arduino

EN

Oct. 2016

Morse

-

-

-

Yes

SW

292012.A01

Arduino

EN

Jan. 2019

Morse

8

7.9 KB

Yes

SW

Version history

Hardware

None

Software

A00 - 2016.10.22 - Original version (internal version)

A01 - 2019.01.01 - Rewritten to comply with coding standard, first released version