
A SMALL EXAMPLE

PARIS is in total 50 dots

PARIS as 30 WPM equals 30*50 dots/second or 60000 msec/1500 = 6000 or 40 msec /dot
----

#include <morse.h>

/* small morse tester
* Jens Dalsgaard Nielsen
*/

void setup()
{
  mInit(0,13,500); /*=. hi/lo on pin 13,  200 msec for a dot */
  Serial.begin(9600);
}


void loop()
{
 //morseC('0');
 //morseS("SOS");
 //morseS("JENS ");  // if you want a word separator you have to give a ' '(space) also in end of string
                     // why ? bq now you can concat strings etc
 //  morseDotDash("... --- ...   ... --- ...   "); // 1 space = char sep  3 spaces = word sep
 // morseI(-123);  // morse signed int
  mDot(); mDot(); mDot(); mcSpace(); mDash(); mDash(); mDash(); mcSpace(); mDot(); mDot(), mDot(); mwSpace();
 delay(1000);
  
 // no morse float implemented

}


