DigitalWriteMorseCode(PIN, "...---...");
DigitalWriteMorseCode(PIN, "SOS");
- Copy "MorseCode.h" and "MorseCode.cpp" to your Arduino Project or copy the files into the folder libraries/MorseCode in your Arduino installation directory. (Restart needed)
- Add
#include <MorseCode.h>
at the top of your .ino file. - Use the function
DigitalWriteMorseCode(PIN, TEXT);
to send a digital signal in Morse code
You can either use DigitalWriteMorseCode(PIN, ". -..- .- -- .--. .-.. .");
or DigitalWriteMorseCode(PIN, "EXAMPLE");
Supported Characters are: ABCDEFGHIJKLMNOPQRSTUVWXYZß1234567890()!?:=