Skip to content

imfrancisd/MorseCodeMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MorseCodeMachine

Get started with Arduino by learning Morse code.

Send Morse code using any device that you can blink, move, or beep with your Arduino.

#include <MorseCodeMachine.h>

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  //From Arduino to anyone.
  sendMorse("CQ CQ CQ DE ARDUINO K", delayLed, ditLed, dahLed);

  //From you to Arduino.
  sendMorse("ARDUINO DE YOU <KN>", delayLed, ditLed, dahLed);
}

void delayLed() {
  delay(200);
}

void ditLed() {
  digitalWrite(LED_BUILTIN, HIGH);
  delayLed();
  digitalWrite(LED_BUILTIN, LOW);
}

void dahLed() {
  digitalWrite(LED_BUILTIN, HIGH);
  delayLed();
  delayLed();
  delayLed();
  digitalWrite(LED_BUILTIN, LOW);
}

Multiple Language Support

See the examples directory to learn how to send Morse Code in another language, such as Greek and Hebrew.

https://github.com/imfrancisd/MorseCodeMachine/tree/master/examples

Documentation

See the src directory to read the documentation for each function in the header files.

https://github.com/imfrancisd/MorseCodeMachine/tree/master/src/arduino

https://github.com/imfrancisd/MorseCodeMachine/tree/master/src/all

Installing the library

Install the library by following the directions here:

https://www.arduino.cc/en/guide/libraries

Install from the Library Manager

Install the library named "MorseCodeMachine" from the Library Manager.

Install from a zip file

Install the zip file of the latest release which can be downloaded here:

https://github.com/imfrancisd/MorseCodeMachine/releases

About

CQ CQ CQ DE ARDUINO K

Resources

License

Stars

Watchers

Forks

Packages

No packages published