/*
EA1NK Light Beacon
Blinks LED and transmit EA1NK callsign in morse code
2012 - Juan J. Lamas EA1NK
*/
// Pin 13 as LED
int led=13;
// Morse code message (1= dot, 2 = dash, 0=space)as array.
int msg[]={4,1,0,3,1,0,2,0,3,1,0,2,0,2,0,2,0,2,0,3,2,0,1,0,3,2,0,1,0,2,0,4};
// . . - . - - - - - . - . -
// E A 1 N K
// Morse code speed configuration WPM.
int speed=12;
// Dot, dash and space timings using PARIS standard, dot = 60 milliseconds at 20 WPM.
int dot=(1200/speed);
int dash=3*dot;
int fig_space=dot;
int char_space=3*dot;
int word_space=7*dot;
void setup(){
// Initialize digital pin as output.
pinMode(led,OUTPUT);
}
void loop() {
// We loop trough the array items and play the message.
for (int i=0;i