Blink three time in row

Here be the sketch of the morse code blinker RRRR.

red LED to pin 12
blue LED to pin 2
green LED to pin 3

remember the resisters and ground
(you knew that already)
Have fun changing the length of the message
in the letters[] array
remember the '{' curly brackets separates words
and the first character in the array is dummy value
I used a x and may want some other character.

/*
arduinograph_Eight_Arrays

Takes a user define message in an array
and outputs it as moris code

red LEDs represent dots
blue LEDs represent dashs
green LEDs show the end of character code

The end of words are represent by three
blinks of the green LED.

The end of the messsage is represent by all
three LEDs blinking similtainiously.

===========================================
Each letter of the message should be contained
with single quotes follow by a comma, but no
comma after the last letter of the message.

Type a { forward curly brackets between words.

Always begin the array with the first element
as: 'x', This allows the array to syn to the
for loop. My bad.

jume 7 2010 Tom Marquette
*/

int blinker1 = 12; // LED red connected to pin 12
int blinker2 = 2; // LED blue connected to pin 2
int blinker3 = 3; // LED green connected to pin 3

int time1 = 1000; // this delay is set for 1000
int time2 = 1000; // sets delay to zero for any code having a single signal value comes from kron2 array
int time3 = 1000; // sets delay to zero for any code having two signals value comes from kron3 array
int time4 = 1000; // sets delay to zero for any code having three signals value comes from kron4 array

int one = 0; // sets pin number from value stored in first array
int two = 0; // sets pin number from value stored in second arrray
int tri = 0; // sets pin number from value stored in third array
int qud = 0; // sets pin number from value stored in fourth array

int letters [] = {'x','a','r', 'd','u','i','n','o','{','d','u','e','m','i','l','i','a','n','o','v','e'};

int length = 20; // number of letters in message (not including the first element 'x'

int first [28] = {10, 12, 2, 2, 2, 12, 12, 2, 12, 12, 12, 2, 12, 2, 2, 2, 12, 2, 12, 12, 2, 12, 12, 12, 2, 2, 2, 3};
int second [28] = {10, 2, 12, 12, 12, 10, 12, 2, 12, 12, 2, 12, 2, 2, 12, 2, 2, 2, 2, 12, 10, 12, 12, 2, 12, 12, 2, 3};
int third [28] = {10, 10, 12, 2, 12, 10, 2, 12, 12, 10, 2, 2, 12, 10, 10, 2, 2, 12, 12, 12, 10, 2, 12, 2, 12, 2, 12, 10};
int fourth [28] = {10, 10, 12, 12, 10, 10, 12, 10, 12, 10, 2, 10, 12, 10, 10, 10, 12, 2, 10, 10, 10, 10, 2, 10, 2, 2, 12, 10};

int kron2 [28] = {0, 1000, 1000, 1000, 1000, 0, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 0, 1000, 1000, 1000, 1000, 1000, 1000, 500};
int kron3 [28] = {0, 0, 1000, 1000, 1000, 0, 1000, 1000, 1000, 0, 1000, 1000, 1000, 0, 0, 1000, 1000, 1000, 1000, 1000, 0, 1000, 1000, 1000, 1000, 1000, 1000, 500};
int kron4 [28] = {0, 0, 1000, 1000, 0, 0, 1000, 0, 1000, 0, 1000, 0, 1000, 0, 0, 0, 1000, 1000, 0, 0, 0, 0, 1000, 0, 1000, 1000, 1000, 0};

int i ;
int x ;
void setup() {

pinMode(blinker1, OUTPUT);
pinMode(blinker2, OUTPUT);
pinMode(blinker3, OUTPUT);

}

void loop() {

for (int i=1; i <= length; i++){

x = letters*-96;*

  • one = first[x];*

  • two = second[x];*

  • tri = third[x];*

  • qud = fourth[x];*

  • time2 = kron2[x];*

  • time3 = kron3[x];*

  • time4 = kron4[x];*

  • #define blinker1 one*

  • digitalWrite(blinker1, HIGH); delay(time1); // first*

  • digitalWrite(blinker1, LOW); delay(time1);*

  • #define blinker1 two *

  • digitalWrite(blinker1, HIGH); delay(time2); // second*

  • digitalWrite(blinker1, LOW); delay(time2);*

  • #define blinker1 tri *

  • digitalWrite(blinker1, HIGH); delay(time3); // thrid*

  • digitalWrite(blinker1, LOW); delay(time3);*

  • #define blinker1 qud *

  • digitalWrite(blinker1, HIGH); delay(time4); // fourth*

  • digitalWrite(blinker1, LOW); delay(time4);*

  • digitalWrite(blinker3, HIGH); delay(1000); // end of character *

  • digitalWrite(blinker3, LOW); delay(1000);*
    }

  • #define blinker1 12*

  • #define blinker2 2*

  • #define blinker3 3*

  • digitalWrite(blinker1, HIGH); // end of message*

  • digitalWrite(blinker2, HIGH); *

  • digitalWrite(blinker3, HIGH); *

  • delay(1000);*

  • digitalWrite(blinker1, LOW);*

  • digitalWrite(blinker2, LOW);*

  • digitalWrite(blinker3, LOW); *

  • delay(6000);*

}