Morse Code uses dots and dashes to communicate with signals that can be sent using sound or light.
This library contains functions for: all of the letters in the alphabet, some accented letters, the numbers 0–9 and Procedural Signals (prosigns) for formatting, using Morse Code.
You can use a Piezo Buzzer, LED or both
You can use this Sketch to create your own Morse Code communicator.
There are options below to use a piezo buzzer or an LED.
-
1.0.0 Created by Lily + Michael Calleia, June 5, 2017 License: CC-BY-SA 3.0
To use:
MorseCode morse( 13, 0, 250 );
Arguments
-
Pin: pin that the buzzer (and optional LED) will be on
-
Frequency: sets the frequency of the buzzer (Uno, Mega, Leonardo and other AVR boards 31–65535, Zero 41—275000)
-
Unit: sets the length of a dot in milliseconds